The [ngSwitch] expression is a conditional statement that is used to insert different sets of elements
into the document based on a specified value, which is the item.done property in this case.
<td [ngSwitch]="item.done">
<span *ngSwitchCase="true">Yes</span>
<span *ngSwitchDefault>No</span>
</td>
网友评论