0%

angular-how to create an angular app

Install Node.js

Download and install Node.js.

Install Angular CLI

1
npm install -g @angular/cli

Create Angular project

1
ng new my-app

If you want to project with specific angular version, use the following command:

1
npx @angular/cli@15 new angular15-app

Start project

1
2
cd my-app
ng serve

Open browser

Open browser and navigate to http://localhost:4200/.

Create angular app with specific version

1
npx @angular/cli@15 new angular15-app

References: