W3cubDocs

/Angular

ValidatorFn

interface

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

interface ValidatorFn {
  (control: AbstractControl<any, any>): ValidationErrors | null
}

Methods

(control: AbstractControl<any, any>): ValidationErrors | null

Parameters
control AbstractControl<any, any>
Returns

ValidationErrors | null

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