Creating your Angular Application
1. Download and install Node.JS & npm on your machine, if it is not installed on your machine.
First Install Node.Js
2. Install Angular CLI from following command :
npm install -g @angular/cli
3. Once you are completed with installing @angular/cli, then you can create new angular project from following command :
ng new your-app-name
For demo purpose, we are creating OnlineShopping project
4. After creating the project with the help of ng new your-app-name command, you can run it in browser, by running following commands from Node.js command prompt
cd OnlineShoppingProject
ng serve -o
-o is short form of “open”, once you run this command, it will open your angular application in your default browser.
The Angular project folder structure looks like shown below :