Check out the Plunkr to see what I'm working on.
I have a dynamic tab control where each tab contains a component that extends from a 'Delay-load' component. The goal is for the user to click on a tab and then trigger the 'loadData' function within the corresponding component.
I've attempted using @ViewChild or @ContentChild to access the child component, but nothing seems to be effective.
The tab template looks like this:
<div [hidden]="!active" class="pane">
<ng-content></ng-content>
</div>
Is it possible to call the .loadData() method of the component in the element when setting the 'active' property within the tab component?