anuglar geenrate module code example Example 1: angular cli generate component ng g c componentName Example 2: ng g c ng generate component <name> [options]