how to generate component with module in angular code example
Example 1: generate new component angular
ng generate <schematic> [options]
Example 2: ng generate component
ng g component [component name]
ng generate <schematic> [options]
ng g component [component name]