ng generate module assistenza --route assistenza --module app.module 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