The below comment is not working for me to create a component in the existing module
ng g c component -m=app.module.ts
The below comment is not working for me to create a component in the existing module
ng g c component -m=app.module.ts
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