If anyone is still looking for a simple way to do this. I am on Ionic 5.x so not sure how far back it works.
This was my solution to setting the button color dynamically
<ion-button [color]="true ? 'color1' : 'color2'">
If anyone is still looking for a simple way to do this. I am on Ionic 5.x so not sure how far back it works.
This was my solution to setting the button color dynamically
<ion-button [color]="true ? 'color1' : 'color2'">