ng g m with routing code example
Example: ng new module w route
// Use this command to create a lazy-loaded feature module with routing, along with its stub component.
ng generate module <MODULE_NAME> --route <ROUTE> --module app.module
// Use this command to create a lazy-loaded feature module with routing, along with its stub component.
ng generate module <MODULE_NAME> --route <ROUTE> --module app.module