Angular – Step 1- Installation

Installation

Step 1- http://nodejs.org ,

Step 2- download and install Node.js with default settings

Step 3- To check Installation , open cmd –>

npm -v

Step 4– Install the Angular CLI, Write the following command:>

npm install -g @angular/cli

Step 5- Create a new Angular x(version) project:>

ng new myapp

Step 6- This will show couple questions. Answer them as following :

Would you like to add Angular routing? 
Yes? 
Which stylesheet format would you like to use? SCSS] 

Note- Angular routing allows you to create routes between the components in your app. We’ll be using Sass (SCSS) as well, it’s an alternative of css, so we’re adding that too.

Step 7- Let’s get into the folder where our new project is stored:>

cd myapp

Awesome, we’re ready to rock now!

Running the Project

Step 9- When you’re developing your Angular 8 app, you can run following command in the terminal:>

ng serve -o

The -o flag is optional, but it opens up your default browser to the development location http://localhost:4200

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.