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

infinte-scroll not triggering when container is unbinded and then rebinded #387

Open
shichung630 opened this issue Dec 19, 2019 · 0 comments

Comments

@shichung630
Copy link

Whenever there is a model change inside the container that infinite-scroll is in, it triggers a digest cycle to redraw the components with the updated model. When the components are redrawn, the infinite scroll container is unbinded to the scroll handler upon destruction. Then when it is re-created, the container is binded back with the scroll handler. When this happens, infinite-scroll does not trigger.

There is a stack-overflow for the non-angular version of ngInfinteScroll, but I can't figure out the solution for this library. Here is the stackoverflow link... https://stackoverflow.com/questions/7936270/jquery-infinite-scroll-reset

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