ng g c command version cli code example
Example 1: angular cli generate component
ng g c componentName
Example 2: angular generat model
ng generate class hero --type=model
ng g c componentName
ng generate class hero --type=model