MCPcopy Index your code
hub / github.com/angular/angular / NoOpValidator

Class NoOpValidator

packages/forms/test/reactive_integration_spec.ts:4125–4142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4123 let registerOnAsyncValidatorChangeFired = 0;
4124
4125 @Directive({
4126 selector: '[ng-noop-validator]',
4127 providers: [
4128 {provide: NG_VALIDATORS, useExisting: forwardRef(() => NoOpValidator), multi: true},
4129 ],
4130 standalone: false,
4131 })
4132 class NoOpValidator implements Validator {
4133 @Input() validatorInput = '';
4134
4135 validate(c: AbstractControl) {
4136 return null;
4137 }
4138
4139 public registerOnValidatorChange(fn: () => void) {
4140 registerOnValidatorChangeFired++;
4141 }
4142 }
4143
4144 @Directive({
4145 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…