Help Angular by taking a 1 minute survey!Go to surveyHome

ValidatorFn

A function that receives a control and synchronously returns a map of validation errors if present, otherwise null.

      
      interface ValidatorFn {
  (control: AbstractControl): ValidationErrors | null
}
    

Methods

      
      (control: AbstractControl): ValidationErrors | null
    
Parameters
control AbstractControl
Returns

ValidationErrors | null