I have this code to only show the weekly hour if the value is not undefined. However, this ngIf check still show undefined on the element. I already tried *ngIf="item.weeklyHour !== undefined" as well but the undefined still shows up. What am I missing?
<span class="c-f__weekly-hour" *ngIf="item.weeklyHour">
{{item.weeklyHour}}
</span>
item.weeklyHouris notundefinedbut"undefined"(You (accidententaly ?) converted it to string somewhere). That would explain this behavior...