I want to bind a page scroll event in my angular directive. I am trying the following code snippet. But it seems the event won't get fired:
angular.element($window).bind("scroll", function(e) {
console.log('page scrolled');
});
I need help, how to achieve this?