ValidatorFn

From Get docs
< @angular/formsAngular/docs/9/api/forms/validatorfn /
Revision as of 02:32, 6 December 2021 by Notes (talk | contribs) (Page commit)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


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–2020 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v9.angular.io/api/forms/ValidatorFn