I have ion-item that will display one of the following Alert, Level 1, Level 2, or Level 3 Emergency.
<ion-item text-wrap *ngFor="let item of levelofEmergency">
{{item.level}}
</ion-item>
What I am trying to do is assign css according to the text of the level. i.e Alert is grey, Level 1 is green etc..
<ion-item text-wrap *ngFor="let item of statuslevelEmergency">
<span style="color:red" *ngIf="item.level === 'Alert'">{{item.level}}</span>
</ion-item>
Thanks in advance for any info pointing me in the right direction.