angular get name of component

JavaScript
this.constructor.name

Source

Also in JavaScript: