MCPcopy
hub / github.com/angular/angular / NoOpAsyncValidator

Class NoOpAsyncValidator

packages/forms/test/reactive_integration_spec.ts:4144–4165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4142 }
4143
4144 @Directive({
4145 selector: '[ng-noop-async-validator]',
4146 providers: [
4147 {
4148 provide: NG_ASYNC_VALIDATORS,
4149 useExisting: forwardRef(() => NoOpAsyncValidator),
4150 multi: true,
4151 },
4152 ],
4153 standalone: false,
4154 })
4155 class NoOpAsyncValidator implements AsyncValidator {
4156 @Input() validatorInput = '';
4157
4158 validate(c: AbstractControl) {
4159 return Promise.resolve(null);
4160 }
4161
4162 public registerOnValidatorChange(fn: () => void) {
4163 registerOnAsyncValidatorChangeFired++;
4164 }
4165 }
4166
4167 @Component({
4168 selector: 'ng-model-noop-validation',

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…