ANGULAR CLI Commands

The following important angular cli commands
Component: ng g component sample
The above command will create following files.

  • samplecomponent.html
  • samplecomonent.ts
  • samplecomponent.spec.ts
  • samplecomponent.css
Service : ng g service sample
The above command will create sampleservice.ts
Module: ng g module sample
The above command will create sample.module.ts
Directive: ng g directive sample