How to Install Angular 9 and Create an Angular 9 Project?

By Hardik Savani May 1, 2024 Category : Angular

In this tutorial, we will install angular 9 and angular 9 create new project. This tutorial will give you simple example of create angular 9 project. i would like to share with you how to install angular 9 and create first app with angular 9. i would like to share with you angular 9 create project. follow bellow step for how to create angular 9 project.

I will written step by step tutorial of how to install angular cli and how to you can create your first app with angular 9 application.

Let's see bellow steps:

Install Angular CLI

So, if you haven't install angular cli in your system then you can install it by using following command:

npm install -g @angular/cli

If angular cli installed successfully, then you can proceed.

But if you have already install angular old version then you can just update it by following link: Upgrade to Angular 9.

After if you run bellow ng command then you have list of commands available for angular application.

ng

You will see layout like as bellow:

Install Angular 9 Project

Now, here we are able to create new project in angular 9 using angular cli command. so let's create it by following command:

ng new first-app

You will have get prompted for a couple of things as like bellow

1. If Would you like to add Angular routing?

If you say yes then it will create app with routing. if not then it will create without routing.

2. Which stylesheet format would you like to use? Pick CSS.

After that you can simply run angular application by following commands:

cd first-app

ng serve

You will see layout like as bellow:

Now you can open your browser and open this url like this way:

http://localhost:4200

You will see layout like as bellow:

I hope it can help you...

Shares