I work with Angular 6. I have the following html
<table class="table table-sm table-bordered table-striped">
<tr>
<th></th>
<th>Name</th>
<th>Count Prices</th>
<th>Average Prices</th>
<th>Total Prices</th><th></th>
</tr>
<tr *ngFor="let item of getCategoriesShortName(); let i = index;">
<paSummaryCategoryDisplay></paSummaryCategoryDisplay>
</tr>
</table>
I want to display each table's td in a component. paSummaryCategoryDisplay is
@Component({
selector: "paSummaryCategoryDisplay",
template: ` <td style="vertical-align:middle">
{{item.summaryCategory.totalPrices}}</td>
<td style="vertical-align:middle" >
{{item.summaryCategory.countPrices}}</td>
<td style="vertical-align:middle" >
{{item.summaryCategory.averagePrices}}</td>`
})
I get the error
Identifier 'item' is not defined. The component declaration, template variable declarations, and element references do not contain such a member
How can I set item from the html to the template?