MCPcopy
hub / github.com/angular/angular / NoOpValidator

Class NoOpValidator

packages/forms/test/template_integration_spec.ts:2571–2588  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2569 let registerOnAsyncValidatorChangeFired = 0;
2570
2571 @Directive({
2572 selector: '[ng-noop-validator]',
2573 providers: [
2574 {provide: NG_VALIDATORS, useExisting: forwardRef(() => NoOpValidator), multi: true},
2575 ],
2576 standalone: false,
2577 })
2578 class NoOpValidator implements Validator {
2579 @Input() validatorInput = '';
2580
2581 validate(c: AbstractControl) {
2582 return null;
2583 }
2584
2585 public registerOnValidatorChange(fn: () => void) {
2586 registerOnValidatorChangeFired++;
2587 }
2588 }
2589
2590 @Directive({
2591 selector: '[ng-noop-async-validator]',

Callers

nothing calls this directly

Calls 3

DirectiveInterface · 0.90
forwardRefFunction · 0.90
InputInterface · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…