[ Web Proxy ]
URL:
Viewing: https://angular.dev/api/forms/AsyncValidatorFn [Back]  [Original]

AsyncValidatorFn Angular Skip to main content
menu
close
more_horiz
menuAPI
@angular/forms

AsyncValidatorFn

interface
stable

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

Creating asynchronous validators

On this page

    arrow_upward_alt Back to the top

    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>
    Jump to details

    Web Proxy Viewer  |  New URL  |  Original Page