ng cli generate component with module code example
Example 1: angular cli generate component
ng g c componentName
Example 2: ng g c
ng generate component <name> [options]
ng g c componentName
ng generate component <name> [options]