write command to generate a component in specific module in angular cli code example
Example 1: generate new component angular
ng generate <schematic> [options]
Example 2: auto generate component angular
ng g component [directory-where-you-want-to-save-the-component]/[new-component-name]
ng generate component [directory-where-you-want-to-save-the-component]/[new-component-name]