ng g component code example
Example 1: angular generat model
ng generate class hero --type=model
Example 2: ng cli generate component
ng g c componentName
Example 3: generate new component angular
ng generate <schematic> [options]
Example 4: ng g component
ng g class <name> [options]