From the docs, it shows that we can bind classes to conditions like so:
<div
class="static"
:class="{ active: isActive, 'text-danger': hasError }"
></div>
What if I want to bind two classes to the same condition, would this work? Would there be a shorter way?
<div
class="static"
:class="{ active: isActive, active: isSelectable }"
></div>
:class="{ active: isActive || isSelectable }"you can also separate that out into a helper method if the complexity grows too much.