| 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 | }) |
| 1371 | class 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', |
nothing calls this directly
no test coverage detected