how to generate angular component new 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