我可以在一个 *ngfor angular 6 中嵌套大括号 {{row.{{Columns[i].field}}}} 吗?
Can I have nested braces {{row.{{Columns[i].field}}}} in one *ngfor angular 6?
<*ngFor="let row of Rows; let i = index">
我有两个数组,我需要按列顺序显示,所以我会
get{{Columns[i].field}} then {{row.{{Columns[i].field}}}}
是否适用。
有什么解决方法吗??
我必须制作两个 ngfor 才能让它工作
`<tr *ngFor="let row of Rows">
<td *ngFor="let column of Columns">
{{row[column.field]}}
</td>
</tr>`
<*ngFor="let row of Rows; let i = index">
我有两个数组,我需要按列顺序显示,所以我会
get{{Columns[i].field}} then {{row.{{Columns[i].field}}}}
是否适用。 有什么解决方法吗??
我必须制作两个 ngfor 才能让它工作
`<tr *ngFor="let row of Rows">
<td *ngFor="let column of Columns">
{{row[column.field]}}
</td>
</tr>`