Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49235

Is there any ionic html tag that does not effect?

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 49235

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>