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 -
Based on the Structural Directives Documentation (not sure if it works, but maybe helps you):
@Directive({
selector: '[example]'
})
export class ExampleDirective {
constructor(private viewContainer: ViewContainerRef) { }
@Input() set example() {
console.log(this.viewContainer.element.nativeElement.value);
}
}