I want to dynamically add a css class to an element I am looping over. The loop is like this:
If you just want to add a class, use the class attribute with interpolation:
class
class="priority-is-{{todo.priority}}"