新生成的项目,创建了一个组件,这个组件的.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
Angular新特性,教你熟练使用 Angular 和 Typescript 开发组件式单页应用
了解课程