angular command to create a component 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