Ion-infinite-scroll only triggers an event once, but it won't trigger the event the second time it pulls up.

1. Page

< ion-content class= "padding" style= "padding: 0px;" >

    <div class="list list-inset" style="margin:0px;padding: 10px;background-color: -sharpddd;">
        <label class="item item-input" style="border-radius: 10px;">
            <i class="icon ion-search placeholder-icon"></i>
            <input type="text" placeholder="">
        </label>
    </div>
    <ion-scroll direction="y" style="width: 100%; height: 650px">
        <div class="list" style="padding: 10px;">
            <label class="item item-input" ng-repeat="data in icdlist" ng-click="showAlert(data)"
                   style="border-left-style:none;border-right-style:none;">
                <span style="font-weight: bold;">{{data.code}}</span>
                <span style="color: -sharp878787;margin-left: 5px;font-size: 10px;">{{data.cnname}}</span>
            </label>
            <ion-infinite-scroll ng-if="hasmore" on-infinite="loadMore()" distance="-1%" immediate-check="false"></ion-infinite-scroll>
        </div>
    </ion-scroll>
</ion-content>

2.js

$scope.loadMore = function(){
    $scope.lastpage = $scope.lastpage + 17;
    $scope.catevent($scope.judge);
}    


Mar.23,2021

I just encountered this problem. I specially signed up to tell you that after
loads the data, I want to broadcast: $scope.$broadcast ('scroll.infiniteScrollComplete'); / / broadcast loaded successfully
this is fine. Loading again triggers


Hello. Have you solved the problem that your pull-up refresh was triggered only once? I now encounter this problem and would like to consult with you

.
Menu