Getting started with Angular

Nipuni Sithara
Jun 10, 2021

To work with Angular, first you need to install ‘node.js’ and ‘npm’. These 2 come together.
Download node.js from www.nodejs.org and install.

To check the installed node version, Run on command prompt
node -v

To check the installed npm version, Run on command prompt
npm -v

Then you need to install Angular. Run on command prompt
npm install -g @angular/cli

To check the installed Angular version, Run on command prompt
ng — version

To start a new Angular project, open command prompt on your selected location and run
ng new ProjectName

If you want to add routing,
ng new Projectame — routing

--

--