45 words, 1 min read

Did you know that in @vuejs you can add static and dynamic classes to an element at the same time?

<template>
<ul>(
<li v-for="item in list"
:key="item.id"
class="always-here"
:class="{
'always-here': true,
selected: item.selected,
}"
>
{{ item.name }}
</li>
</ul>
</template>

Great tip by @MichaelThiessen.