3 ms·
What you are referring to is just syntactic sugar. @click is the same as v-on:click and :class is the same as v-bind:class. So you can write this line "less ali
by foofoobar 11y ago
What you are referring to is just syntactic sugar. @click is the same as v-on:click and :class is the same as v-bind:class. So you can write this line "less alien" like this:
<th v-for="key in columns" v-on:click="sortBy(key)" v-bind:class="{active: sortKey == key}">