Your html content should look like this:
<ion-content class="has-header">
<ion-list>
<ion-item ng-repeat="item in arrItemValues track by $index">
{{item}}
</ion-item>
</ion-list>
<ion-infinite-scroll ng-if="isMoreItems" on-infinite="updateList()" distance="10%">
</ion-infinite-scroll>
</ion-content>
When user scroll from bottom then updateList() method will call.
You can write your JS code in updateList() method to update your list.
<ion-content class="has-header">
<ion-list>
<ion-item ng-repeat="item in arrItemValues track by $index">
{{item}}
</ion-item>
</ion-list>
<ion-infinite-scroll ng-if="isMoreItems" on-infinite="updateList()" distance="10%">
</ion-infinite-scroll>
</ion-content>
When user scroll from bottom then updateList() method will call.
You can write your JS code in updateList() method to update your list.
No comments:
Post a Comment