I am trying to add multiple classes in ngClass, where one of the classes is a concatenation of a literal string and a variable. This is what I need, but I got a syntax error:
<div [ngClass]="[{'w-' + percentage}, {'finished': true}]"></div>
Where is the error in this expression?
<div [ngClass]="{'w-' + percentage: true, 'finished': true}"></div>- enno.void