...

/

Developing the Best Forms Using Reactive Forms

Developing the Best Forms Using Reactive Forms

This lesson covers all the important features of reactive forms in Angular.

As learnt in the previous lesson, we now know that when forms are an essential part of our application, we use reactive forms to build more testable, robust, and scalable applications.

This is more like the component way of defining form input fields. Let’s look at the different entities used when dealing with Reactive forms.

Importing the module

To use reactive forms in Angular, we import the ReactiveFormsModule instead of FormsModule.

import { ReactiveFormsModule } from '@angular/forms';

@NgModule({
  imports: [
    BrowserModule,
    ReactiveFormsModule
  ],

Since most of the logic is written in the ...