how to create a new component in angular and use it code example
Example 1: angular new component
ng g c componentName
Example 2: angular new component
ng generate component componentName
ng g c componentName
ng generate component componentName