1👍
You can add conditional classes like so. And then I would just add a class with your desired properties:
:class="[
this.tabid === 3 && active ? 'be_red' : ''
]"
<style>
.be_red {
background-color:red;
}
</style>
- [Vuejs]-Not able to update the data with @change in Vue js 2
- [Vuejs]-Chart in $refs cannot be referenced
Source:stackexchange.com