angular create module with routing cli code example
Example 1: generate module with routing in angular
ng g m [ModuleName] --routing
Example 2: angular cli generate new module
ng generate module module-name
ng g m [ModuleName] --routing
ng generate module module-name