Reputation: 245
Is it possible to use !=
in ngIf
?
I have tried but it didn't work:
<div class="tranDetails tenPadding" *ngIf="transDtlsObj?.txnHistory!='null'">
Upvotes: 1
Views: 19104
Reputation: 2515
null is not equal to 'null', regardless of whether you use != or !==. *ngIf works fine for != operations, try removing the quotes in your code,that could be the issue,
<div class="tranDetails tenPadding" *ngIf="transDtlsObj?.txnHistory!=null">
Upvotes: 4