add component using angular cli code example
Example 1: creare component in anglar
ng generate component [component-name]
Example 2: ng g component
ng g class <name> [options]
ng generate component [component-name]
ng g class <name> [options]