angular
woderlili
将学变成玩
展开
-
angular学习(一)
常用指令记录1.创建项目,运行项目ng new my-projectcd my-projectng serve2.安装组件ng add ng-zorro-antd //安装antdng add --help //查看 add 下指令3.更新ng update --help //查看update 下指令ng update --all //更新所有ng update @angular/core //单独更新@angular/core组件4基于某个原理图生成和/或修改文件ng ge原创 2021-11-16 15:20:33 · 391 阅读 · 0 评论 -
angular基础创建组件报错Is it missing an @NgModule annotation
报错信息Error: src/app/test/test.component.ts:8:14 - error NG6002: Appears in the NgModule.imports of AppModule, but could not be resolved to an NgModule class.Is it missing an @NgModule annotation?报错代码原因:app.module.ts 文件中testcomponent引入错误,应该引入testmodul原创 2021-11-12 10:45:36 · 2637 阅读 · 0 评论