First of all here is the Plunkr
Essentially, I have a tab control that is dynamic. There will be any number of tabs, each of which will contain a component that inherits from this 'Delay-load' component. The functionality I wish to achieve is that when a user clicks on the tab, it will then call 'loadData' from within whichever component is contained within the tab.
I have tried to access the child component with @ViewChild or @ContentChild but nothing I try seems to work.
The template of the tab is:
<div [hidden]="!active" class="pane">
<ng-content></ng-content>
</div>
And on the setter of the property 'active' within the tab component, I wish to call the .loadData() method of whatever component is held within the element. Is this achievable?