In my Cordova-ionic mobile app, I am using ion-affix and ion-infinite-scroll for a list. Below the code;
<ion-scroll zooming="false" direction="y" style="width: 100%;height:500px">
<ion-refresher
pulling-text=“Pull To Refresh“
on-refresh=“reloadData()”></ion-refresher>
<div class="list" ng-repeat="thisitem in homeData.items_new">
<div class="item item-divider item-energized text-center" ion-affix data-affix-within-parent-with-class="list">
{{thisitem.Date}}
</div>
<div class="item item-text-wrap" ng-repeat="item_sub in thisitem.items">
{{item_sub.Time}} - {{item_sub.FlightNo}}
</div>
</div>
<ion-infinite-scroll ng-if="!homeData.noMoreItemsAvailable" on-infinite="home_load_flights()" distance="10%"></ion-infinite-scroll>
</ion-scroll>
The infinite scroll works fine at first loading. But when I refresh(pull down to refresh) the infinite scroll not working. Also when I remove the item for ion-affix, it works fine. Please help me.