日本免费高清视频-国产福利视频导航-黄色在线播放国产-天天操天天操天天操天天操|www.shdianci.com

學無先后,達者為師

網(wǎng)站首頁 編程語言 正文

ionic4 ngFor中使用ngIf

作者:沉、睡 更新時間: 2022-02-03 編程語言

ionic4 ngFor中使用ngIf ;ngfor與ngif同時使用報錯

如果想要在ngFor上使用*ngIf的話則需要套一層ng-container

<ng-container *ngFor="let item of items">
     <div *ngIf="item.status">...</div>
</ng-container>

原文鏈接:https://blog.csdn.net/zz975896590/article/details/119991024

欄目分類
最近更新