Dynamic list item icon?


#1

The Ionic Creator // Code Editor Tutorial shows how to make the text of a list item dynamic using {{item.name}} but I don’t see a way to set the Left icon property based on data.

Is there a way to do this with Creator?

Thanks!


#2

I accomplished it for now by converting the List Item to HTML and replacing the class attribute to ng-class and adding the expression there.

I first tried using [ngClass] but that didn’t work. It needed to be ng-class, and I’m not really sure why. So any insights appreciated!