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

Class NoOpAsyncValidator

packages/forms/test/reactive_integration_spec.ts:4141–4162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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