Validation
In this lesson, we'll learn how to validate input.
We'll cover the following...
Validation is necessary for almost any form. We can use reactive forms to perform validation on the client side, which saves users from having to wait for a response from the server. They’ll be able to receive immediate feedback.
We’ll want to ensure every input in the form contains valid values for a credit card. Angular comes with validators out of the box. Validators are functions that check a value against some rules. A boolean value is returned based on whether the input’s value passes the ...