error NG6001: The class 'AppComponent' is listed in the declarations o

Dec 29 2021 6:36 AM

Hi Team,

i'm new to angular.i'm learning. getting below erorr

can any one help on this.

 

error NG6001: The class 'AppComponent' is listed in the declarations of the NgModule 'AppModule', but is not a directive, a component, or a pipe. Either remove it from the NgModule's declarations, or add an appropriate Angular decorator.


Answers (1)