It doesn't sound like the directive is the issue, but the object data in the array bound to ng-repeat. I have a page that uses angular-ui-bootstrap's pager and the only items on the scope are the ones for the current page, hence I do not have this issue.
What is the checkbox binding ng-model? That is what you need to manage on paging, turn off any that aren't on the current page. Make sense? On Monday, March 17, 2014 5:06:20 AM UTC-6, Johan Smolders wrote: > > I have a inbox kind of view which uses a ngRepeat. Inside every row is a > directive I created to mark the row (checkbox). > The problem is that when I use pagination and update the source of > ngRepeat in every step the directives that are created in on every page > aren't destroyed. > This means if you check on box on page one, one on page two and one on > page three AngularJs thinks 3 items are selected. > How do I destroy directives once they aren't shown anymore? > > -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
