0👍
Please look at slice, it has a return value. In your currentPage
method assign the return value to the invites
data property.
this.invites = this.invites.slice(start, end).reverse();
- [Vuejs]-JS import – VueJs Router – having trouble refactoring a watch object
- [Vuejs]-Get rid of divs in the DOM
-1👍
You can set by this way too:
this.$set(this, 'invites', this.invites.slice(start, end).reverse());
- [Vuejs]-How to render a graph when Mysql data is updated in Vue?
- [Vuejs]-Using Concatenation in Import file using vue js
Source:stackexchange.com