angular 8 cli how to create new module with component code example
Example 1: angular cli generate new module
ng generate module module-name
Example 2: create angular component using cli
ng generate component hero-detail
ng generate module module-name
ng generate component hero-detail