【发布时间】:2020-01-20 17:08:53
【问题描述】:
我有这个 Angular 的 html:
<table>
<thead>
<tr>
<th *ngFor="let col of columns">
{{col}}
</th>
</tr>
<tr>
<th *ngFor="let col of subColumns">
{{col}}
</th>
</tr>
</thead>
<tbody>
<tr *ngFor="let priceRow of priceRows">
<td *ngFor="let price of priceRow">
{{price}}
</td>
</tr>
</tbody>
</table>
这是我正在尝试做行的 priceRows 的内容:
但我在尝试打印表格时得到了空表格。
您在 priceRows 的数组中发现任何错误吗?
Stackblitz 网址:https://angular-bnxfca.stackblitz.io
【问题讨论】:
-
能分享到stackbiltz还是分享所有的json
-
angular-bnxfca.stackblitz.io@AdritaSharma
-
共享网址无效
标签: angular ngfor angular8 angular-ngfor