ng g c component name code example
Example 1: angular generate component
ng g component componentname
Example 2: create angular component using cli
ng generate component hero-detail
ng g component componentname
ng generate component hero-detail