[Vuejs]-Conditional classes on elements in Vue where we may have multiple options

1👍

just remove {{ }} arround the bound data:

<div :class="{
    'class-option1': record.styleOption === 'option1',
    'class-option2': record.styleOption === 'option2',
    'class-option3': record.styleOption === 'option3',
}">

Leave a comment