how to get component name in angular code example Example: angular get name of component this.constructor.name