DAGDA SEARCH | Back to results | Support the Project

AsyncValidatorFn • Angular

Source: https://angular.dev/api/forms/AsyncValidatorFn

@angular/forms

AsyncValidatorFn

interfacestablecode

A function that receives a control and returns a Promise or observable that emits validation errors if present, otherwise null.

API

    
      interface AsyncValidatorFn {  (control: AbstractControl<any, any, any>): Promise<ValidationErrors | null> | Observable<ValidationErrors | null>;}
    
    

Promise<ValidationErrors | null> | Observable<ValidationErrors | null>@paramcontrolAbstractControl<any, any, any>@returnsPromise<ValidationErrors | null> | Observable<ValidationErrors | null>