My Own Angular Notes

个人Angular笔记

Posted by starwavelin on August 30, 2019

How to setup a Demo App

  1. Open or goto the directory you wanna initiate an Angular app
  2. Install the latest angular command line tool
    $ npm i -g @angular/cli@latest
    
  3. ng new to create the demo app’s primitive code and code structures
    $ ng new <Angular_App_Name>
    
  4. Goto the directory of <Angular_App_Name>
    $ cd <Angular_App_Name>
    
  5. ng serve to start the development server for the angular app
    $ ng serve