Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

*ngIf breaks item-right on icon in list

$
0
0

@larschla wrote:

I have a list, where i want to display an icon in some of the list-items.

i have the following line of code:
<ion-list>
<ion-item>
Some text
<ion-icon name="alert" item-right *ngIf="obs.length > 0"></ion-icon>
</ion-item>
</ion-list>

This displays the icon, directly behind "some text", and not at the very right side, as it is supposed to.

If i remove the ngIf="obs.length > 0" from the ion-icon line, it works perfectly well. So i wonder if ayone else has experienced this, and found a workaround? I suppose that if it's a bug in ionic itself, it should probably be adressed at some point :slight_smile:

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



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