Ion-option dynamic styling

#1

I get params for dropdownlist from server. Each drop down option get its color from server. I tried <ion-option [style.background-color]=“item.color”> but it not works. How to solve this problem?

#2

Hello,

maybe item.color do not resolve to a string, that background-color understand. Check it.

Best regards, anna-liebt