首页 > 代码库 > First Angular2 App

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

First Angular2 App