ng g class type model code example
Example 1: angular generat model
ng generate class hero --type=model
Example 2: ng generate component
ng g component [component name]
ng generate class hero --type=model
ng g component [component name]