angular
//创建项目(要求 `Node.js` 版本至少在 `v10.13` 或 `v12.0` 版本)
ng new 项目名称
//启动项目
cd 项目名称
ng serve
//或者
ng serve --port 端口号
//打包
ng build
//普通路由加载
//app.routing中
{path: 'self', component: AppComponent}
//创建组件命令
ng g module 组件名 --routing
ng g component 组件名
...
原创
2020-06-22 14:14:59 ·
236 阅读 ·
0 评论