I\'ve got the following error when launching my Angular app, even if the component is not displayed.
I have to comment out the so that my
You need to import FormsModule in your root module if this component is in the root i.e. app.module.ts
Kindly open app.module.ts
Import FormsModule from @angular/forms
Ex:
import { FormsModule } from '@angular/forms';
and
@NgModule({ imports: [ FormsModule ], })