generate component in directory code example
Example 1: angular generate component
ng g component componentname
Example 2: ng g component
ng g class <name> [options]
ng g component componentname
ng g class <name> [options]