I am new to angular and I am trying to solver for the following. Spent almost 3 hours going through docs and YouTube videos but no luck.
Use Case - Change the button color based on the status coming form a data feed. For example: Button is blue if the feed.status is Open. It is green if feed.status is closed and it is red if feed.status is paused.
Inside my component.ts file -
feedData: any;
show="Open";
..... more code that completes the component implementation
In my component.html file
<ion-card *ngFor="let feed of feedData">
<div *ngIf="show == feed.status">
<ion-item lines="none">
<ion-button slot="start" color="red">{{ feed.status }}</ion-button>
</ion-item>
</div>
</ion-card>
The code above doesn't work. What i really need to do is change the color based on the value stored in feed.status. How do I go about it?