@ferdinandferdinandfe wrote:
Hello,
I would like to set the color of an element dynamically. I tried to do it like this
<ion-content [ngStyle]=" { 'color' : 'api.getCategoryColor(item.categories[0])'}">but it doesn’t work.Does anybody knows how I could do it ?
Thank you
Posts: 1
Participants: 1