Skip to content
angelozerr edited this page Jun 21, 2016 · 7 revisions

angular-cli

angular-cli is a wonderful CLI tooling to generate an Angular2 project, components, services, etc, start a server, etc. The use of this project requires:

  • installation of node.js.
  • installation of angular-cli with npm install -g angular-cli. After that you benefit with ng command (ex: ng new myproject generates you an Angular2 project)

It is recommended to use angular-cli when you wish to generate an Angular2 project, components, services, etc because it follow the whole Angular2 recommendation and provide command like ng serve which starts your application with a server which supports Live Reloading (if you change your CSS, ts files in your Eclipse workspace, the browser is refrehsed with your changes).

Angular2 IDE provides 2 means to consume angular-cli:

Clone this wiki locally