我有點困惑。如果結果有幾種情況之一,我需要隱藏塊。但似乎它不能正常工作...角度4:* ngIf與多重條件
<div *ngIf="currentStatus !== 'open' || currentStatus !== 'reopen' ">
<p padding text-center class="text-notification">{{message}}</p>
</div>
它剛剛出現與其他條件。它不適用於1條件也不適用於2.也嘗試*ngIf="currentStatus !== ('open' || 'reopen') "
,但它只適用於1個案例。
預期的行爲是什麼?何時應評估爲「真」,何時評估爲「假」?示例中出現 –