> npm uninstall -g @angular/cli
> npm cache clean (--force)
> npm install -g @angular/cli@latest
> ng new hello-angular
> cd hello-angular
> ng serve -open
> ng serve -o
> ng serve --port 4300 -o
> npm uninstall -g yarn
> npm install -g yarn
> npm install
> ng update
> npm update
> ng generate component product --flat
- flat - won't create sub folder
- ouputs:
- product.component.ts,
- product.component.spec.ts
- product.component.html
- product.component.css
> ng g s product
- g - generate, s - service
- outputs:
- product.service.ts
- product.service.spec.ts
Your global Angular CLI version (7.3.8) is greater than your local (during ng serve)
> ng update @angular/cli