Submodule 23.2: Creating new data - Forms- Practice
Update the App module
Import the FormsModule and ReactiveFormsModule from @angular/forms into your app.module.ts and add it to your NgModule's imports array as follows:
import { FormsModule } from '@angular/forms';
import { ReactiveFormsModule } from '@angular/forms';
...
imports: [
...
FormsModule,
ReactiveFormsModule
],
Note that here we imported FormsModule to enable the Template Driven Forms and ReactiveFormsModule to load the reactive forms directives.
It is not necessary to import the FormsModule since we will work only with the ReactiveFormsModule.