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

Change icon if the value is 0 or 1...ng-class - ng-ig

$
0
0

@fabiobalsamo wrote:

hi, i'm still there!!! :wink: i need your help, i need to show an 'ion-checkmark-circled' or an 'ion-close-circled' in a list item if the values of "archiviate.approvata" is true or false. (the value comes from db or Json) ...I've tried to use this, but still the 'ion-checkmark-circled' for every item in the list
ng-class="{false: 'ion-checkmark-circled', true: 'ion-close-circled'}[archiviate.approvata == 0]"
Many thanks

Posts: 10

Participants: 2

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>