[Vuejs]-VueJS – i can't hide readmore button before or after reach the selected limit data to show in vuejs

0πŸ‘

To hide your button, use the v-if directive.

<button v-if="dataFilter && dataFilter.length < dataEvents.length" @click="limit*=2">Show More</button>

This will only show the button if there are events, and the filtered events are less than the total.

You can also use the v-show directive.

Leave a comment