I have a Angular2 template like this:
<app-tab [Title]="'Test1'">
<app-component-one></app-component-one>
</app-tab>
<app-tab [Title]="'Test2'">
<app-component-two></app-component-two>
</app-tab>
Now, how can I access the app-component-one
or app-component-two
in app-tab
?
The output from app-tab should be something like this:
<div>
<div class="panel-heading">
<h1 class="panel-title">Test 1</h1>
<div>CONTENT FROM app-component-one</div>
</div>
</div>
Thank you