new component angular cli command code example
Example 1: angular 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