Skip to content

Glossary: Angular Beyond the Basics

ValidatorFn

Also written: ValidationErrors

The type of a validator function: it gets a control and returns `null` when fine, or a `ValidationErrors` object such as `{ wholeBags: true }`.

Where the book teaches it

Related terms

Cross-field validatorAsyncValidatorFn