0👍
✅
You’re just incrementing/decrementing the startIndex in previous and next method. Instead you could do something like this:
previous : function() {
this.pagination(this.currentPage - 1);
},
next : function() {
this.pagination(this.currentPage + 1);
}
Source:stackexchange.com