MCPcopy Create free account
hub / github.com/angular/angular / SelfValidatingFvcInput

Class SelfValidatingFvcInput

packages/forms/signals/test/web/reactive_fvc.spec.ts:1364–1377  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1362}
1363
1364@Component({
1365 selector: 'self-validating-fvc-input',
1366 template: '',
1367 providers: [
1368 {provide: NG_VALIDATORS, useExisting: forwardRef(() => SelfValidatingFvcInput), multi: true},
1369 ],
1370})
1371class SelfValidatingFvcInput implements Validator {
1372 readonly value = model('');
1373
1374 validate(control: AbstractControl): ValidationErrors | null {
1375 return control.value === 'bad' ? {selfValidated: true} : null;
1376 }
1377}
1378
1379@Component({
1380 selector: 'init-validating-fvc-input',

Callers

nothing calls this directly

Calls 2

ComponentInterface · 0.90
forwardRefFunction · 0.90

Tested by

no test coverage detected