add a component in angular code example
Example 1: angular cli generate component
ng g c componentName
Example 2: angular add component
ng generate component [name]
Example 3: ng generate component
ng g component [component name]
ng g c componentName
ng generate component [name]
ng g component [component name]