How to Install and Setup Angular 7

Angular Web Web Technologies

1. INSTALL NODEJS

Because Angular is a JavaScript framework, it requires to have Nodejs(A JavaScript runtime) installed on our system.

11.13.0 is the current latest version and it can be installed using the official website URL below.

https://nodejs.org

2.INSTALL ANGULAR CLI

Angular CLI helps us to create projects, generate application and library code, and perform a variety of ongoing development tasks such as testing, bundling, and deployment.

It can be simply installed using npm. So run the below command on Command Prompt / Powershell

npm install -g @angular/cli

3. CREATE A NEW ANGULAR PROJECT

Now we need to set up a workspace for Angular projects in our system and create a new app. This can be done with the command below.

ng new awesome-project

4. RUNNING OUR APPLICATION

The app we created can be run using the command below.

ng serve --open

This opens up a new tab on our browser with the URL below.

http://localhost:4200

Leave a Reply

Your email address will not be published. Required fields are marked *