0

The below comment is not working for me to create a component in the existing module

ng g c component -m=app.module.ts

R. Richards
  • 24,603
  • 10
  • 64
  • 64
  • https://stackoverflow.com/questions/40649799/create-component-to-specific-module-with-angular-cli – Chellappan வ Mar 30 '21 at 06:25
  • as of right now not possible , you need to use atleast 2 command as given in https://stackoverflow.com/questions/40649799/create-component-to-specific-module-with-angular-cli – deepak thomas Mar 30 '21 at 07:02

1 Answers1

0

You can do by angular cli cmd:

ng g m /pages/home-page && ng g c /pages/home-page

or you can create module with routing as you prefered:

ng g m /pages/home-page--routing=true && ng g c /pages/home-page
Akhmet
  • 1
  • 2