[Vuejs]-Toggle class conditionally in Vue.js

0👍

Managed to get it working thanks to Timothy’s suggestion, that was almost there. It was just missing the .item portion.

So it should be

<div v-bind:class="{ disabled:!item.included }"></div>

0👍

<div v-bind:class="{ disabled:!included }"></div>

Maybe try using class binding :
doc

Leave a comment