In the following Ionic2/Angular2 template:
<ion-row style="background-color: #f4b434">
<ion-col col-4><b>Brand</b></ion-col>
<ion-col col-1><b>Qty</b></ion-col>
<ion-col col-2><b>Sales</b></ion-col>
<ion-col col-2 style="color: whitesmoke "><b>Qty</b></ion-col>
<ion-col col-3 style="color: whitesmoke "><b>Sales</b></ion-col>
</ion-row>
<div *ngFor="let x of datasales">
<ion-row>
<ion-col col-4><b>{{x.Brand}}</b></ion-col>
<ion-col col-1>{{x.Qty_Today | number:0 }}</ion-col>
<ion-col col-2>{{x.SalesToday | number:0 }}</ion-col>
<ion-col col-2>{{x.Qty_MTD | number:0 }}</ion-col>
<ion-col col-3>{{x.Sales_MTD | number:0 }}</ion-col>
</ion-row>
</div>
If x.Brand = 'Good'
then in the second ion-row
I want to add style="background- color:red"
.
How can I accomplish it?