【发布时间】:2017-10-21 18:19:25
【问题描述】:
我有这种 JSON:
{
description: "Some Description",
child: [{
description2: "Some Other Description",
description3: "Another Description"
}]
}
我想在我的 PrimeNg DataTable 上显示它,但不知何故它总是显示空白单元格。
这是我的专栏代码
<p-column field="child" header="Child">
<ng-template let-col let-item="rowData" pTemplate="body" >
<tr ngFor="let child of item.child">
<td>
{{child.description2}}
</td>
</tr>
</ng-template>
</p-column>
有什么解决办法吗?
【问题讨论】:
标签: angular angular2-template primeng angular-datatables