Understanding reactive forms
One of the advantages of the Angular framework is that it already provides its form extensions. We can find these extensions under the @angular/forms
package once we have created our Angular application. There are two available ways to build forms. These are template-driven forms and reactive forms; them having their own form extension is advantageous to the developers as this does not require installing under packages to create forms.
At the same time, we can make sure that every Angular application uses a single library for building forms. In this section, we will be focusing more on how to implement reactive forms in our application as this is the commonly used method in developing forms in Angular applications, but first, let’s discuss a basic introduction to the template-driven approach before proceeding to reactive forms.
The template-driven approach
Template-driven forms, as the name suggests, are forms declared and validated on the...