79113721

Date: 2024-10-22 11:06:58
Score: 0.5
Natty:
Report link

I don't know Aurelia, but in straight up Javascript, you need to move the back ticks to the outside of the string and change the way you concatenate the second num.

The string would need to be:

<div class=`myclass__spinner ${num ? 'myclass_progress__color_'+num : ''}`>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Ray Wallace