Angular 2 'component' is not a known element

后端 未结 15 2110
傲寒
傲寒 2020-11-30 17:58

I\'m trying to use a component I created inside the AppModule in other modules. I get the following error though:

\"Uncaught (in promise): Error: Temp

15条回答
  •  半阙折子戏
    2020-11-30 18:56

    I am beginning Angular and in my case, the issue was that I hadn't saved the file after adding the 'import' statement.

提交回复
热议问题