Install Nodejs
Run cmd: npm install
node -v
Global Install: npm install -g @angular/cli
New Project: ng new my-app
Serve the application:
cd my-app
ng serve –open
ng serve –open –port=42003
ng g cl my-new-class: add a class to your application
ng g c my-new-component: add a component to your application
ng g d my-new-directive: add a directive to your application
ng g e my-new-enum: add an enum to your application
ng g m my-new-module: add a module to your application
ng g p my-new-pipe: add a pipe to your application
ng g s my-new-service: add a service to your application.
Bundling /dist for prod
CMD: ng build –prod or ng serve –prod will also make use of uglifying and tree-shaking functionality.
Running unit tests
ng test
Updating angular-cli
To update angular-cli to a new version, you must update both the global package and your project’s local package.
Global package:
npm uninstall -g angular-cli
npm cache clean
npm install -g angular-cli@latest
Heya i am for the first time here. I came across this board and
I find It really useful & iit helped mee out much. I hope to offfer something back and aid
others such as you helped me.
I need to to tһank you for this very good read!!
I certainly enjoyed еvery little bit of it. I’ve got you book marked
to look at new stuff you post…