1. 程式人生 > >angualr-cli命令建立檔案

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