Dynamic list item icon?


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?



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!