npm install-g @angular/cli
ng new PROJECT-NAME cd PROJECT-NAME ng serve //
http://localhost:4200/
ng serve--host 0.0.0.0--port 4201
命令和描述 |
Component
ng g component new-component
|
Directive
ng g 指令新指令
|
Pipe
ng g pipe new-pipe
|
Service
ng g service new-service
|
Module
ng g 模块我的模块
|