// make sure to remove older version of Angular first npm uninstall -g @angular/cli npm uninstall -g angular-cli // clean the cache and verify npm cache clean npm cache verify // installing the packages npm install -g @angular/cli // Yarn package manager is required by Angular CLI npm install -g yarn // check the version ng –version // create a new Angular application ng new angularmaterial cd angularmaterial // serve the application and show in browser ng serve // install Angular Material and required Angular CDK npm install --save @angular/material @angular/cdk
The application shown on the browser should automatically refresh every time you make changes to the codes. If it is not working try to put some polling interval, like:
ng serve --poll=2000
No comments:
Post a Comment