【发布时间】:2020-11-08 19:12:55
【问题描述】:
如何获取 ngfor 循环的总数,然后显示在中
在上面?
<p>Total row: "I need to display the number of row here"</p>
<table class="table" >
<tr>
<th>ID</th>
<th>Name</th>
</tr>
<tr *ngFor="let l of list">
<td>{{l.id}}</td>
<td>{{l.name}}</td>
</tr>
</table>
【问题讨论】: