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
Hello,
it was a guess that div as block element breaks your layout. In this case each inline element or to inline element converted block element should work.
Untouched div and untouched span aren’t doing the same, div is a block element, span is a inline element. So maybe it helps if you show all related code, maybe it’s only a typo or … or …