creating new component through cli in a location code example
Example 1: creare component in anglar
ng generate component [component-name]
Example 2: create angular component using cli
ng generate component hero-detail
ng generate component [component-name]
ng generate component hero-detail