Angular - Commands

Angular has a command line interface (CLI).

You can execute commands like

1
ng generate component employee

When you execute a command link this you instruct Angular to create a library component. This will do things in the background, from my perspective it creates 4 files, and attempts to link them into the project.

Actually generate is just one of the commands, there are a few more.

Commands

  • [[generate]] - used to generate some code.
  • [[help]]
  • [[new]] used to setup a new angular application
  • [[serve]] will start the angular server.
  • [[version]] returns the version of angular used by the application you are developing.