Fork me on GitHub

Angular-脚手架

脚手架命令
范围 命令 作用
new right-aligned 初始化新项目
Component ng g component my-new-component 新建一个组件
Directive ng g directive my-new-directive 新建一个指令
Pipe ng g pipe my-new-pipe 新建一个管道
Service ng g service my-new-service 新建一个服务
Class ng g class my-new-class 新建一个类
Interface ng g interface my-new-interface 新建一个接口
Enum ng g enum my-new-enum 新建一个枚举
Module ng g module my-module 新建一个模块
常用命令
  • 启动服务ng serve
  • 打包ng build
目录树详解

upload successful

I'm not rich, but still hold the dream.
显示 Gitment 评论