Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NgRepeater Not Rebinding #361

Open
mdemarco1234 opened this issue Apr 18, 2017 · 0 comments
Open

NgRepeater Not Rebinding #361

mdemarco1234 opened this issue Apr 18, 2017 · 0 comments

Comments

@mdemarco1234
Copy link

the load more event gets called but the repeater is not rebinding. I have tried this several ways.

            <div class="show-grid" infinite-scroll='loadMore()' infinite-scroll-distance='2'>
                
                    <div class="col-md-12 col-xs-12 show-grid-leads" ng-repeat="lead in Leads" ng-click="vm.showleaddetail(lead.Id, $event)">



$scope.loadMore = function () {

    var a = [];

    for (var i = 0; i < $scope.Leads.length; i++) {

       a.push($scope.Leads[i]);

    }

    var last = a[a.length - 1];
    for (var i = 1; i <= 8; i++) {
        a.push($scope.Leads[1]);
    }

    $scope.Leads = [];
    $scope.Leads = a;

};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant