generate module with routing in angular

JavaScript
// 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.moduleng g m [ModuleName] --routing

Source

Also in JavaScript: