Browse Source

update: use new control flow syntax instead

pull/24132/head
sumeyye 3 months ago
parent
commit
57bda3561f
  1. 12
      docs/en/tutorials/microservice/part-06.md

12
docs/en/tutorials/microservice/part-06.md

@ -314,11 +314,13 @@ Open the `order.component.html` file (the `order.component.html` file under the
<th>Product Name</th>
<th>Customer Name</th>
</tr>
<tr *ngFor="let item of items">
<td>{%{{{item.id}}}%}</td>
<td>{%{{{item.productName}}}%}</td>
<td>{%{{{item.customerName}}}%}</td>
</tr>
@for (item of items; track item.id) {
<tr>
<td>{%{{{item.id}}}%}</td>
<td>{%{{{item.productName}}}%}</td>
<td>{%{{{item.customerName}}}%}</td>
</tr>
}
</thead>
</table>
</div>

Loading…
Cancel
Save