Pravat Kumar

Pravat Kumar

  • 1.2k
  • 670
  • 100.8k

How to generate components in a specific folder

Mar 21 2019 7:34 AM
How to generate components in a specific folder with angular-cli?
 
example:
ng g  c test
 
src >> app>>test>>test.component.ts
 
but i want to create into different folder by using same command
 
example: 
ng g c test 
 
src >> app>>newfolder>> test>>test.component.ts
 
i dont want to use below command every time.
 
 ng g c newfolder/test
 
please help me.

Answers (4)