Can you help me figure out how to use a condition for selecting multiple classes with [ngClass] in Angular?
<td>
<span
[ngClass]="{
'badge badge-success': server.type === 'PRODUCTION',
'badge badge-danger': server.type === 'TEST',
'badge badge-warning': server.type === 'DEV'
}">
</span>
</td>
I am aware that [ngClass] does not work with {{ }}, and I am fetching my data from a Django REST API. What is an alternative way to achieve this? Thank you.