title: $http.get returns the first page response in successive pagination requests(angularjs)
body: <p>I am using angular $http.get for getting data from my api. Say my api name is <code>/api/endpoint</code>. I have implemented pagination with <code>/api/endpoint?start=1&amp;end=5</code>. The pagination is for spaced at interval of say 5 items per page. Following is my snippet of request:</p>
  
  <pre><code>   $http.get('/api/endpoint', config) // config={params:{start:1, end:5}}
      .then(function (data) {
        console.log('in service', data.data.data); // please remember this line.
        return data.data;
      });
  </code></pre>
  
  <p>The first iteration seems fine. The response is data from the index 0 to index 4. But when I load next page:</p>
  
  <ol>
  <li>the config is fine. <code>{start: 6, end: 10}</code>, </li>
  <li>the request url seems fine. <code>apiUrl/api/endpoint?start=6&amp;end=10</code>.</li>
  <li>the response in the network debugger of the browser is fine <code>//data from index 5 to index 9</code>.</li>
  <li>but in the <code>.then()</code> above and the steps after that, the data is always the data from <code>start=1&amp;end=5</code>, regardless of anything. its always the first 5 data.  </li>
  </ol>
  
  <p>This is the weirdest bug I have ever faced and I dont know if anybody has faced it. But please do help me out here if you have and please dont downvote for the nature of the bug. </p>