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

Class NoOpAsyncValidator

packages/forms/test/reactive_integration_spec.ts:4147–4168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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