I'm looking for solution to pass current component scope data into ng-content
directive.
I've app-table
component template with data I want to pass into child content, using some solution like this:
<!-- some html before -->
<table>
<!-- complex header markup with sorting/filtering support -->
<tr *ngFor="let item of data">
<ng-content [value]="item"></ng-content> //how to pass data?
</tr>
</table>
//some html after
And page template where I want to use this data:
<app-table>
<td>{{value.Name}}</td>
...
</app-table>
Is this possible?