title: Trouble with Pagination in ionic 3?
body: <p>I am trying to add pagination on my news app but when I scroll down I can find only the objects.</p>
  
  <p>Ts file: </p>
  
  <pre><code>doInfinite(infiniteScroll) {
      console.log('Begin async operation');
      setTimeout(() =&gt; {
      this.api.getPosts().subscribe(data=&gt;{
      console.log(data)
      this.getData = data
    })
     console.log('Async operation has ended');
      infiniteScroll.complete();
     }, 500);
   }
  </code></pre>
  
  <p>Html part:</p>
  
  <pre><code>     &lt;ion-list&gt;
        &lt;ion-item *ngFor="let i of getData"&gt;{{i}}&lt;/ion-item&gt;
      &lt;/ion-list&gt;
  
      &lt;ion-infinite-scroll (ionInfinite)="doInfinite($event)"&gt;
        &lt;ion-infinite-scroll-content&gt;&lt;/ion-infinite-scroll-content&gt;
      &lt;/ion-infinite-scroll&gt; 
  </code></pre>
  
  <p>I want content should continue loading as I scroll down the page</p>