Creating First Angular Project
Setup:
1. Node Installation
2. Angular CLI Installation
1. Node Installation
We need to use Node and NPM compile them into js file so that we can deploy them in production.
Download Node LTS for your Operating system from link below:
2. Angular CLI Installation
To Install Angular Cli
1. Open Command Prompt
2. Type the command npm install -g @angular/cli
Creating New Project in Angular
Steps:
1. Create angular project using command ng new my-app
ng - stands for angular
new - option to create new project
my-app - name of the project
2. Type yes to add angular routing
3. Choose the type of Styling : CSS, SCSS, Sass, Less, Stylus
After installation we will get output like below.
Running the Angular project
Steps:
1. Go inside the angular project using cd my-app
2. Hit the command ng serve
3. Go to URL: http://localhost:4200/ on your browser
Our Angular Project has successfully started. We get this default page from angular.
Comments
Post a Comment