新生成的项目为什么会报错Error:(3, 2) ng: Component
来源:6-5 组件生命周期钩子概述

fdsfsdasfa
2018-01-15
新生成的项目,创建了一个组件,这个组件的.component.ts组件就会报错
Error:(3, 2) ng: Component 'LifeComponent' is not included in a module and will not be available inside a template. Consider adding it to a NgModule declaration
写回答
1回答
-
felix
2018-01-15
在@NgModule这个组件装饰器里引入
012018-01-17
相似问题