美文网首页
angular 6 from rookie to master

angular 6 from rookie to master

作者: ElliotG | 来源:发表于2018-10-17 11:18 被阅读0次

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>

相关文章

网友评论

      本文标题:angular 6 from rookie to master

      本文链接:https://www.haomeiwen.com/subject/qxblzftx.html