Adding Reactive Forms

In this lesson, we'll add the reactive forms system to the application.

This section focuses on creating custom validators. Before we can work on creating a custom validator, we’ll need to add a forms system to our app. There are two options at our disposal when working with forms: reactive forms and template forms. We’ll be using reactive forms because they give us more control over how forms are configured.

The ReactiveFormsModule

We’ll need to import the ReactiveFormsModule if we want to use it. We’ll update app.module.ts file to the following.

Get hands-on with 1200+ tech skills courses.