Skip to content

Instantly share code, notes, and snippets.

@paulido
Created September 26, 2024 16:11
Show Gist options
  • Save paulido/57dd95be431b0b49f693d3b5a7526c2c to your computer and use it in GitHub Desktop.
Save paulido/57dd95be431b0b49f693d3b5a7526c2c to your computer and use it in GitHub Desktop.
This for installing angular globaly or localy

Angular get start

Global

This install angular cli version globally

Instation

npm install @angluar/cli[@version]

Create app

ng new <app-name>

Run app

npm start

OR

ng serve

Generate component

ng generate <my-component>

Local installation

This not install angular cli globally. It allow to run multiple angular version app.

Installation

npx @angular/cli[@version] new <app-name>

Run app

npm start

OR

npx @angular/cli@18

Generate component

npx ng generate component <my-component>

OR

npm run ng generate component <my-component>

NB: version can be v16 v17 , etc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment