I have an attribute directive that I will be applying to elements in my DOM. I was wondering if it is possible to somehow get the component name that surrounds the attribute directive in the DOM.
For example, given:
<SomeComponent>
<div myAttributeDirective>
</SomeComponent>
I want to get the name SomeComponent
from within the attribute directive code.
I know I can pass in anything to the directive, but I'm trying to make it as succinct syntax as possible, and was hoping there was a creative way to accomplish this.