Form validation is an important part of the process when getting information from people in an application. We want to make sure that they don’t submit incorrect data, like a string for a number input. There are some built-in validators in browsers, but we can easily add custom validators to form inputs when we use reactive forms. The custom validators can be for individual input fields or for the whole form, and either way they’re easy to add and apply to forms.

#angular #reactive forms

Reactive Forms Benefits: Validators
1.75 GEEK