module file ng command code example
Example 1: create angular component using cli
ng generate component hero-detail
Example 2: ng g
ng g directive <name> [options]
ng generate component hero-detail
ng g directive <name> [options]