码迷,mamicode.com
首页 > 其他好文 > 详细

angular2 step by step #1

时间:2017-02-10 17:28:13      阅读:125      评论:0      收藏:0      [点我收藏+]

标签:for   tin   build   4.0   before   logs   https   dex   product   

install
  node.js\npm   
  check version
    node -v (7.2.0)
    npm -v (4.0.2)

install angular-cli (npm install)
  latest: https://github.com/angular/angular-cli/releases   
  check version     ng -v (cli: 1.0.0-beta.21)

Create angular2 project
  ng new

Run WebSite
  ng serve
  "ng serve" will lunch the web application, however for other hosting environment, need to build the application for production version.

Deployment

  ng build (don‘t use any envinronment for now. eg ng build --prod)  

  index.html before and after build.

技术分享 

Copy dist folder to hosting environment. eg (IIS, apache, etc)

angular2 step by step #1

标签:for   tin   build   4.0   before   logs   https   dex   product   

原文地址:http://www.cnblogs.com/chsw/p/6386824.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!