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
There are two steps you need to follow to get rid of this error
basically app.module.ts should look like below :
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { FormsModule } from '@angular/forms';
import { AppComponent } from './app.component';
import {AppChildComponent} from './appchild.component';
@NgModule({
imports: [ BrowserModule,FormsModule ],
declarations: [ AppComponent, AppChildComponent ],
bootstrap: [ AppComponent ]
})
export class AppModule { }
Hope it helps