I have a div with a scrollbar in it. Now I want to get an event, that triggers every time, the user scrolls.
Is that possible in AngularJS, or do I have to use jQue
Solution for Angular 1.6:
.directive("scroll", function () { return { link: function(scope, element, attrs) { element.bind("wheel", function() { console.log('Scrolled below header.'); }); } }
})
Use "wheel" instead of "scroll". It takes me few hours to find.