AngularJS window scroll event does not fire
I would just use
$(window).scroll(function () { alert('scrolled') })
OR you could use
angular.element($window).bind("scroll", function(e) {
alert('scrolled')
})
there is no need for angular.element() inject $window to your controller, use the window.onscroll event
$window.onscroll = function (){
console.log('window was scrolled!');
};