angular component code example
Example 1: angular new component
ng g c componentName
Example 2: angular add component
ng generate component [name]
Example 3: angular get name of component
this.constructor.name
ng g c componentName
ng generate component [name]
this.constructor.name