The FormsModule

In this lesson, we'll enable template forms in our application by registering the FormsModule.

Earlier, I mentioned that Angular provides two systems for developing forms. We first looked at reactive forms, which is the more complex solution out of the two. In this section, we’ll look at the second system called template forms.

If we want to use template forms, we’ll need to register the module. This is similar to how we enabled the reactive form system in the previous project.

In the app.module.ts file, we’ll import the FormsModule from the @angular/forms package.

Get hands-on with 1400+ tech skills courses.