I'm getting this error while I compile my code with --aot. without --aot it ignores this error.
here is the line on which I'm getting this error
<h2 class="inquiry-title" *ngIf="(summaryData.Title != undefined || summaryData.Title != null)">
{{summaryData.Title}}
</h2>
Please suggest me what I'm doing wrong?
undefined and null are all falsy in javascript, you have just to do:
<h2 class="inquiry-title" *ngIf="summaryData.Title">
{{summaryData.Title}}
</h2>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With