• Overview
@angular/forms

AsyncValidator

interface

An interface implemented by classes that perform asynchronous validation.

  
    interface AsyncValidator extends Validator {}
  
  

validate

Promise<ValidationErrors | null> | Observable<ValidationErrors | null>

Method that performs async validation against the provided control.

@paramcontrolAbstractControl<any, any>

The control to validate against.

@returnsPromise<ValidationErrors | null> | Observable<ValidationErrors | null>

registerOnValidatorChange

void

Registers a callback function to call when the validator inputs change.

@paramfn() => void

The callback function

@returnsvoid
Jump to details