title: How can I do the previous and next on pagination in Vue.js?
body: <p>I'm having trouble with the previous and next on pagination. Can somebody help how can I do the previous and next on pagination? I want my pagination looks like this Previous 1 2 3 Next. Here's my jsfiddle <a href="https://jsfiddle.net/cspzm21o/2/" rel="nofollow noreferrer">https://jsfiddle.net/cspzm21o/2/</a></p>
  
  <pre><code>  pagination : function(activePage) {
                  this.currentPage = activePage;
                  this.startIndex = (this.currentPage * 10) - 10;
                  this.endIndex = this.startIndex + 10;
              },
  
    previous : function() {
                  this.startIndex--;
              },
    next : function() {
                  this.startIndex++;
              }
  </code></pre>