I'm struggling to apply a conditional Vue statement to change the CSS style based on the text value. I have tried following other tutorials with no luck as I'm a beginner with Vue.
If for example I want the class to be is-success when {{s.specialType}} == "food" AND is-danger when {{s.specialType}} == "drink" how would I do it.
I would appreciate any help. Thanks
<div v-for="s in spc.specials" class="column is-one-third">
<div class="field">
<span class="tag is-success is-capitalized">{{s.specialType}}</span>
</div>
</div>