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

ScrollSpies not readded after routechange #0.5.7 #44

Closed
funklos opened this issue Jun 22, 2014 · 3 comments
Closed

ScrollSpies not readded after routechange #0.5.7 #44

funklos opened this issue Jun 22, 2014 · 3 comments

Comments

@funklos
Copy link

funklos commented Jun 22, 2014

Hi,
i am using the angular-scroll directives in a view, which is included via the "ng-view" directive on my default route, and renders a list of dynamic content. My routes are provided through the $routeProvider.
The directives are working fine until route change events. After back-navigation the scrollspies are not re-added and following a navigation link does not trigger the scrollTo event.
I suppose the corresponding views are not ready when the directives are linked. How can I prevent this behavior?

@oblador
Copy link
Owner

oblador commented Jun 22, 2014

Could you put up a plunker?

22 jun 2014 kl. 15:19 skrev Funklos notifications@github.com:

Hi,
i am using the angular-scroll directives in a view, which is included via the "ng-view" directive on my default route, and renders a list of dynamic content. My routes are provided through the $routeProvider.
The directives are working fine until route change events. After back-navigation the scrollspies are not re-added and following a navigation link does not trigger the scrollTo event.
I suppose the corresponding views are not ready when the directives are linked. How can I prevent this behavior?


Reply to this email directly or view it on GitHub.

@funklos
Copy link
Author

funklos commented Jun 22, 2014

Sure:
http://embed.plnkr.co/n4cmvHcndCC46V9yFb7z/preview

Thanks in advance!

EDIT:
I got the scrollTo behavior working, but the scrollSpies are still not re-added after back-navigation.

@oblador
Copy link
Owner

oblador commented Jun 22, 2014

Hi, this bug is actually already fixed, see #41

Made a new release for you.

@oblador oblador closed this as completed Jun 22, 2014
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

2 participants