generate new coponent code example
Example 1: generate module with routing in angular
ng g m [ModuleName] --routing
Example 2: angular generate component
ng g component componentname
ng g m [ModuleName] --routing
ng g component componentname