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

Remove jQuery dependency #1

Open
Misiu opened this issue Mar 16, 2016 · 0 comments
Open

Remove jQuery dependency #1

Misiu opened this issue Mar 16, 2016 · 0 comments

Comments

@Misiu
Copy link

Misiu commented Mar 16, 2016

I've been playing around with Your directive and I found it really nice.
I had no problem with getting it up and running, but after removing jQuery from my project Your directive stopped working.
One thing I was able to fix was able to fix was element selection.
Instead:
var $element = $(scrollContainer);
I'm using:
var $element = angular.element(document.querySelector(scrollContainer));

but problem remains with:
$element.animate({ scrollTop: scrollPos }, scrollSpeed);
I've found angular-only way to animate, but I'm not angular expert so it's hard for me to combine both.

Thanks for help.

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