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