How to use ionic infinite scrolling with object retrieved from php?


#1
$scope.loadMore=function(){    
           var parameters = {shopID:shop.id,Fid:$localstorage.Fid};
	myHttp.HttpRequest("allShops.php",parameters).then(function (items) {
		$scope.shops=items.output;		
	}, function (status) {
		console.log(status);
	});	
}
       <ion-list   ng-repeat="shop in shops track by $index">
	<ion-item >
		<h6>{{shop.Sname}}</h6>
    	</ion-item >     
      </ion-list>	
			
			
  <ion-infinite-scroll ng-if="!noMoreItemsAvailable" on-infinite="loadMore()" distance="10%"></ion-infinite-scroll>

#2

You should track by id, it may not solve your problem but that’s the way it should be done.

<ion-list ng-repeat="shop in shops track by shop.id">