How can we disable infinite scrolling once available results are empty? With the example I set $canScroll to false when next returns an empty response.
<ion-content scroll="{{$canScroll}}">
<ion-list>
<ion-item ng-repeat="thing in things">
{{thing}}
</ion-item>
</ion-list>
<ion-infinite-scroll
on-infinite="next()">
</ion-infinite-scroll>