title: ng2-smart-table with paging from back-end (Spring)
body: <p>I am using a back-end server (Java Spring) that has Pager enabled. I am loading 100 records per page on a HTTP call. </p>
  
  <p>On angular2 service, it is consuming the API call with "?page=1&amp;size=100" as the initial call whereas on the client size pager, it shows 10 and moves up to 10 page which is fine. But I am unable to load the next chunk of data from server. I have checked ServerDataSource and used .setPaging(1,100). </p>
  
  <p>How can I load the next chunk of data (2-200) and how can I achieve this. Any hints will be helpful. </p>
  
  <pre><code>@Injectable()
  export class AmazonService extends ServerDataSource {
  
  constructor(protected http: Http) {
      super(http);
  }
  
  public getAmazonInformation(page, size): Observable&lt;Amazon[]&gt; {
  
      let url = 'http://localhost:8080/plg-amazon?page=1&amp;size=100';
      this.setPaging(1, 100, true);
      if (this.pagingConf &amp;&amp; this.pagingConf['page'] &amp;&amp; 
         this.pagingConf['perPage']) {
            url += 
         `page=${this.pagingConf['page']}&amp;size=${this.pagingConf['perPage']}`;
  }
  
  return this.http.get(url).map(this.extractData).catch(this.handleError);
  }
  </code></pre>
  
  <p>Thank you!</p>