{"action":"opened","issue":{"url":"https://api.github.com/repos/sroze/ngInfiniteScroll/issues/178","labels_url":"https://api.github.com/repos/sroze/ngInfiniteScroll/issues/178/labels{/name}","comments_url":"https://api.github.com/repos/sroze/ngInfiniteScroll/issues/178/comments","events_url":"https://api.github.com/repos/sroze/ngInfiniteScroll/issues/178/events","html_url":"https://github.com/sroze/ngInfiniteScroll/issues/178","id":62638823,"number":178,"title":"infinite-scroll-container does not take into account two dom trees on view/route change","user":{"login":"hoxu","id":43341,"avatar_url":"https://avatars.githubusercontent.com/u/43341?v=3","gravatar_id":"","url":"https://api.github.com/users/hoxu","html_url":"https://github.com/hoxu","followers_url":"https://api.github.com/users/hoxu/followers","following_url":"https://api.github.com/users/hoxu/following{/other_user}","gists_url":"https://api.github.com/users/hoxu/gists{/gist_id}","starred_url":"https://api.github.com/users/hoxu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hoxu/subscriptions","organizations_url":"https://api.github.com/users/hoxu/orgs","repos_url":"https://api.github.com/users/hoxu/repos","events_url":"https://api.github.com/users/hoxu/events{/privacy}","received_events_url":"https://api.github.com/users/hoxu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-18T09:35:32Z","updated_at":"2015-03-18T09:35:32Z","closed_at":null,"body":"infiniteScrollContainer does not take into account that when the link function is called, there can be multiple (ngView) dom trees with the same elements around, and picks the wrong one.\r\n\r\nOne solution would be to add a way to search for an ancestor element with a given class, to be used as the container.\r\n\r\nA similar issue is being discussed here: https://stackoverflow.com/questions/20895111/how-to-prevent-angularjs-from-having-old-view-and-new-view-on-dom-when-route-cha\r\n"}}