首页 > 代码库 > angular2 step by step #1
angular2 step by step #1
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
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。