angular4 搭建项目

1、安装 设置开发环境

npm install -g @angular/cli

2、创建新项目

ng new myApp  / ng new router routing

3、安装依赖插件

cd myApp
npm install

 

4、启动开发服务器

ng serve --open

5、创建组件模块

ng g component myComponent

 

posted @ 2017-09-21 23:30  浮生如梦似离殇  阅读(273)  评论(0编辑  收藏  举报