ValidatorFn • Angular
interface
stable
A function that receives a control and synchronously returns a map of validation errors if present, otherwise null.
API
interface ValidatorFn { (control: AbstractControl<any, any, any>): ValidationErrors | null;}
ValidationErrors | null@paramcontrolAbstractControl<any, any, any>
@returnsValidationErrors | null