Am not Able to do load more data


#1

I want to do like this what am wrong load only 10 product

  loadMoreProducts(){ 
    this.WooCommerce.getAsync("products?page="+this.page).then((dat)=>{
     let data = JSON.parse(dat.body);
      this.infinite.complete();
      if (this.page == 1) { 
          this.moreProducts = new Array; 
          this.infinite.enable(true); 
        }
      if (data.length != 0) {
        this.page++;
        for (let value of data) {
          this.moreProducts.push(value);
          console.log()
        }
      }
      if (data.length == 0 || data.length < 10) {
        this.infinite.enable(false);
      }
  
    },(error)=>{
      console.log(error)    
    })
  }

Thanks in advance