Hello i want to set the background color for an ion-card. I am returning an Object has has a property named color and this property has values on db table the predefined colors on variables.scss (primary, secondary, tertiary, dark etc...),. The object's name is userInterests. userInterests.color is the property that has the values (primary, secondary, tertiary)
<ion-col size="6" *ngFor="let item of usersInterest;">
<ion-card id="card">
<ion-avatar>
<img [defaultImage]="defaultImage" [lazyLoad]="item.profile_pic"/>
</ion-avatar>
<div class="card2"><div><br /><br /><br /><br /><br /><br /><br /><br /></div>
<div class="card-title">{{item?.first_name || item?.username }}</div>
<div class="card-subtitle">{{item?.artisticBehaviour}}</div>
</div>
</ion-card>