angulary 学习笔记1

来源:互联网 发布:java视频传智播客 编辑:程序博客网 时间:2024/04/29 17:08

1 安装angular4 , 选安装 node js , 仅使用它的npm 工具。 为什么 npm管理js 包? google it if you dont have yet.

它方便管理JS依赖包啊。用途npm 安装 ng4 命令如下:

npm -g install @angurlar/cli


to ensure that NG is correctly installed . please  input  following command line in terminal

$ng --version 

or 

$ng -v


once NG is good .now we can start to create a NG project. with following command 

$ng new Project1

by doing this ,it will download a all a project need dependencies and other ,it will take couple munites

to speed it up , in china. to change npm registry to china image 

use following command :

 nmp config registry https://registry.npm.taobao.org


btw : NG 4 is 5 times faster than NG1



原创粉丝点击