Angualr CLI提供了许多常用命令供我们选择:
- 1
- 2
- 3
- 4
- 5
- 6
- 7
ng g cl my-new-class // 新建 class
ng g c my-new-component // 新建组件
ng g d my-new-directive // 新建指令
ng g e my-new-enum // 新建枚举
ng g m my-new-module // 新建模块
ng g p my-new-pipe // 新建管道
ng g s my-new-service // 新建服务