angular / 11.2.14 / api / forms / validatorfn.html /

ValidatorFn

interface

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

© 2010–2021 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v11.angular.io/api/forms/ValidatorFn