Get Angular component's name from the reference
Yes it is definitely possible using this.constructor.name
. This will give you the name of the current component.
this.constructor.name
In your case you can try doing
this.comp.constructor.name