AsyncValidator

interface

npm Package @angular/forms
Module import { AsyncValidator } from '@angular/forms';
Source forms/src/directives/validators.ts

Interface Overview

interface AsyncValidator extends Validator { 
  validate(c: AbstractControl): Promise<ValidationErrors | null> | Observable<ValidationErrors | null>
}

Members

validate(c: AbstractControl): Promise<ValidationErrors | null> | Observable<ValidationErrors | null>

© 2010–2018 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v5.angular.io/api/forms/AsyncValidator