Skip to content
Snippets Groups Projects
Select Git revision
  • 99da23a18922dc47475ee8d8af2b6fee9c92a1c9
  • main default protected
  • OZG-8252-gitlab-pipelines
  • release
  • OZG-7856_schadcode_scanner
  • ci-pipeline
  • OZG-7526-signatur-nicht-uebernommen
  • OZG-6223-zip-download-bug
  • OZG-7367-tooltip-extension
  • OZG-7023-OZG-6956-E2E-externe-Stellen
  • OZG-6238-npm-durch-pnpm-ersetzen
  • release-admin
  • release-info
  • OZG-6700-admin-feature-toggle
  • E2E-Updates
  • OZG-7047-tooltips
  • OZG-6957-e2e-fachstellen-oe-daten
  • OZG-7006-ZuarbeitAnfragen
  • temp_OZG-7027
  • unit-tests-hotfix
  • OZG-6731-POC-keycloakResourceService-with-multiple-stateResources
  • 2.27.0
  • 2.26.0
  • 2.25.0
  • 2.24.2
  • 2.24.1
  • 2.24.0
  • 2.23.0
  • 2.22.0
  • 2.21.0
  • 2.20.0
  • 2.21.0-SNAPSHOT
  • 2.19.0
  • 2.18.0
  • 2.17.1
  • 1.3.0
  • release-admin-1.3.0
  • release-info-1.3.0
  • 2.17.0
  • 2.16.0
  • 2.15.0
41 results

text-field.component.ts

Blame
  • user avatar
    OZGCloud authored
    Unit test: test component components only.
    Do not test UI behaviour in unit tests.
    16e65498
    History
    user avatar 16e65498
    text-field.component.ts 531 B
    import { getMessageForInvalidParam, InvalidParam } from '@alfa-client/tech-shared';
    import { Component, Input } from '@angular/core';
    import { FormControlEditorAbstractComponent } from '@ods/component';
    
    @Component({
      selector: 'text-field',
      templateUrl: './text-field.component.html',
    })
    export class TextFieldComponent extends FormControlEditorAbstractComponent {
      @Input()
      label: string;
    
      public getErrorMessage(invalidParam: InvalidParam): string {
        return getMessageForInvalidParam(this.label, invalidParam);
      }
    }