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 component componentName in directory dir and prevent creation of the test file.

Debugging

  1. Chrome dev tools
  2. Source maps
  3. Augury
  4. Debugging in Visual Studio Code