AsyncValidatorFn

interface

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

Methods

(control: AbstractControl): Promise<ValidationErrors | null> | Observable<ValidationErrors | null>

Parameters

control

Type: AbstractControl.

Returns

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

© 2010–2019 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v6.angular.io/api/forms/AsyncValidatorFn