Skip to content

Remove jQuery dependency #1

@Misiu

Description

@Misiu

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions