adding new component to angular code example
Example 1: creare component in anglar
ng generate component [component-name]
Example 2: ng generate component
ng g component [component name]
ng generate component [component-name]
ng g component [component name]