angualr-cli命令创建文件

1.创建Component

ng g component my-new-component

2.创建 Directive

ng g directive my-new-directive

3.创建Pipe

ng g pipe my-new-pipe

4.创建Service

ng g service my-new-service

5.创建Class

ng g class my-new-class

6.创建Guard

ng g guard my-new-guard

7创建Interface

ng g interface my-new-interface

8.创建Enum

ng g enum my-new-enum

9.创建Module

ng g module my-module

10.创建Page

ng g page my-page

posted @ 2019-04-03 15:04  潇潇mini  阅读(450)  评论(0编辑  收藏  举报