I put ion-refresher and ion-infinite-scroll component in one page,when I pull to refresh , ion-infinite-scroll’s on-infinite method will be called。I found that during refresh time, checkInfiniteBounds methods would be called many times 。(infiniteScrollCtrl.scrollEl.addEventListener(‘scroll’, infiniteScrollCtrl.checkBounds);
this is okay while your condition for infinite-scroll is valid during refreshing --> but in this time your list is maybe empty --> and you automatically reach the bottom of your scroll-view --> infinite scroll gets triggered. So i would add a flag on the scope which is true while refreshing.
so you can extend your ng-if like that: ng-if="!noMoreItemsAvailable && !refreshing"
Thank you bengtler. that fixed my problem as well. But the strange thing is my infinitescroll is not triggered on page load although I set $scope.LearningDynamics = [ ] on the controller. Any idea?
Hi Bengtler, I did that but it didn’t work. I opened a different thread for the issue maybe you can give me a hand on the issue? With my knowledge and skills I have no idea how to debug further.