InfiniteScroll not work

Hi guy, I use infiniteScroll for list oder of my app, but my code do not work.
this is my code:

doInfinite(infiniteScroll) {
    this.orderservice.load().subscribe(data => {
      this.orders. data.data;
    })
    setTimeout(() => {
      for (let i = 0; i < 10; i++) {
        this.orders.push( this.orders.length );
      }
      infiniteScroll.complete();
    }, 1);
  }

This part may need to be placed somewhere else. Besides that this.orders.data.data does nothing relevant to the data in any of your variables

Oh, yes…now I edit it…