使用npm管理andular
官方网址 https://angular.io/docs/ts/latest/cli-quickstart.html
clr
必要条件:
- 安装nodejs 版本最好6.0以后
安装CLI
npm install -g @angular/cli
新建一个项目
ng new myApp
- 进入这个项目
cd myApp
- 运行项目
ng serve -o
-o参数告诉终端启动服务后打开浏览器
ng 默认的端口 4200
官方网址 https://angular.io/docs/ts/latest/cli-quickstart.html
npm install -g @angular/cli
新建一个项目
ng new myApp
cd myApp
ng serve -o
-o参数告诉终端启动服务后打开浏览器
ng 默认的端口 4200