command for creating new component in angular code example
Example 1: ng generate component
ng g component [component name]
Example 2: create angular component using cli
ng generate component hero-detail
ng g component [component name]
ng generate component hero-detail