[Vuejs]-How hide a group of buttons on the homepage? vue.js

0👍

So then just do this v-if="index !== 0" example:

    <div class="button-group" v-if="index !== 0">
         <button type="button" :class="{active:index ==0}" @click="moveTo(0)">home</button>
         <button type="button" :class="{active:index ==1}" @click="moveTo(1)">about</button>
         <button type="button" :class="{active:index ==2}" @click="moveTo(2)">contacts</button>
    </div>

This will do the trick

Leave a comment