command to generate new component in angular code example
Example 1: generate module with routing in angular
ng g m [ModuleName] --routing
Example 2: angular generate component
ng g component componentname
Example 3: ng generate new component
ng generate <schematic> [options]