Scroll event is not firing
问题 I have to display more images as the user scrolls down the browser window.I have created a directive for that.But scroll event is not getting fired. app.directive('whenScrolled', function() { return function(scope, elm, attr) { var raw = elm[0]; elm.bind('scroll', function() { if (raw.scrollTop + raw.offsetHeight >= raw.scrollHeight) { scope.$apply(attr.whenScrolled); } }); }; }); In LoadMoreItems, I am pushing two new items into the list: function LoadMoreItems() { $scope.temp = $scope