angular ng generate v code example
Example 1: ng generate component
ng g component [component name]
Example 2: create angular component using cli
ng generate component hero-detail
ng g component [component name]
ng generate component hero-detail