First Angular2 App

Angular2

1. install angular-cli

  npm install -g angular-cli

2. new project by using ng command

  ng new angular2_hello_world

3. start server

  ng server

4. add new component

  ng generate component hello-world

-------------------------------------------------------------------------------
Senior Software Engineer
原文地址:https://www.cnblogs.com/fangshiwei/p/6032631.html