angular create a component and use 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]