angular2 开发起步。

来源:互联网 发布:非农历史数据一览表 编辑:程序博客网 时间:2024/04/30 07:59

angular2 开发起步。

下载安装 node js。

https://nodejs.org/en/download/

设置淘宝镜像。

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

参考:淘宝镜像 http://npm.taobao.org/

安装typescript、angular-cli。

npm install -g typescript typingsnpm install -g angular-cli --ignore-scriptsnpm install

起步

  • 创建angular-cli工程。
  • 启动服务。
  • 在chrome中调试。

参考:英雄编辑器

更多内容详见Angular 2中文网

0 0
原创粉丝点击