Angular toolset
- Install Angular CLI -
npm install -g @angular/cli@latest
CLI
In order to update the angular-cli package installed globally in your system, you need to run:
npm uninstall -g angular-cli
npm cache clean
npm install -g @angular/cli@latest
Most likely you also want to update your local project version, because inside your project directory it will be selected with higher priority than the global one:
npm uninstall --save-dev angular-cli
npm install --save-dev @angular/cli@latest
npm install
Common CLI commands
ng g c dir/componentName --skip-tests true --module moduleName
- create componentcomponentName
in directorydir
and prevent creation of the test file.
Debugging
- Chrome dev tools
- Source maps
- Augury
- Debugging in Visual Studio Code