Create angular 2 application
- Download and install NodeJS from https://nodejs.org/en/download/package-manager/
- Install Angular CI by command:
npm install -g @angular/cli
sudo npm install -g @angular/cli
Create a new project
Open terminal and run command:
ng new webapp
A angular 2 project is created with folder name “webapp”
Run the application
Go to the project folder and run the application
cd webapp ng serve
The ng serve command launches the server, watches your files, and rebuilds the app as you make changes to those files.
Open a browser on http://localhost:4200/; the app greets you with a message: app works!
What is next? modify and create a real application