Do you know of a more efficient solution to handle a situation like this?
<tr [style.background]="level == 'ALARM' ? 'violet' : level == 'ERROR' ? 'orange' : level == 'WARNING' ? 'yellow' : 'white'">
If I had 10 levels, it would become hard to read.