ng g angular code example
Example 1: generate new component angular
ng generate <schematic> [options]
Example 2: create angular component using cli
ng generate component hero-detail
ng generate <schematic> [options]
ng generate component hero-detail