@azamalvi wrote:
I am facing a scenario in which I am displaying my data in ion-item using a loop. Now I want if data is not empty then item should be visible else hide. For this purpose I am using a div and putting if condition on. But problem is that when I apply div it change the style of my item. Is there any non-affected html tag that solve my problem?
My code is below<ion-item *ngFor="let item of product| async"> <div *ngIf="item"> <ion-thumbnail item-start> <img src="{{item.image}}"> </ion-thumbnail> <strong>{{item.name}}</strong> </div > </ion-item>
Posts: 1
Participants: 1