@carlosadrian wrote:
favorite
I have a string property with values like "primary", "secondary" or "danger". I am able to bind it to a badge in this way:
<ion-badge class="badge badge-{{product.colorStock}}">1</ion-badge>But I am not able to do the same with a label (this does NOT work):
<ion-label class="label label-{{product.colorStock}}">Text</ion-label>How could I bind my property to the label so it changes its color?
Thank you
Posts: 6
Participants: 3