Pravat Kumar

Pravat Kumar

  • NA
  • 668
  • 451.9k

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)