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
Simple Soultion : In app.module.ts
Example 1
import {FormsModule} from "@angular/forms";
// add in imports
imports: [
BrowserModule,
FormsModule
],
Example 2
If you want to use [(ngModel)] then you have to import FormsModule in app.module.ts
import { FormsModule } from "@angular/forms";
@NgModule({
declarations: [
AppComponent, videoComponent, tagDirective,
],
imports: [
BrowserModule, FormsModule
],
providers: [ApiServices],
bootstrap: [AppComponent]
})
export class AppModule { }