With a structural directive, how would I get a hold of the (native) element the directive is on? With a normal directive, the ElementRef has it\'s nativeElement pointing to it -
All structural directives are added to
elements. Angular never adds
elements to the DOM. Therefore it's not possible to get the element a structural directive is added to.
If you use the shorthand syntax with *
like
angular creates
and because
is not added, there is no way of getting it and because