create module using cli angular code example
Example 1: generate module with routing in angular
ng g m [ModuleName] --routing
Example 2: ng cli generate component
ng g c componentName
ng g m [ModuleName] --routing
ng g c componentName