Add border-left for <ion-item> in ionic 2


#1

Hi,
How would i be able to add “border-left : 5px solid #cccc00;” dynamically in more than one “ion-item” with different color ?

Thanks


#2

Try to put the color in your template (i.e in your html file like this <ion-item style="border-left : 5px solid {color};">...</ion-item>