I'm getting data from a API and I want to check if percent_change_1h is less than 0, and if so for displays a different text color.
<ion-row>
<ion-col>
<ion-label ng-if="top.percent_change_1h < 0" style="color: #b21a91;">
<b>1H: </b>{{top.percent_change_1h}}
</ion-label>
<ion-label ng-if="top.percent_change_1h > 0">
<b>1H: </b>{{top.percent_change_1h}}
</ion-label>
</ion-col>
</ion-row>
How can I make this comparison process, in case it is less than 0 to display a color, and if it is greater than or equal to 0, show another one?