Is there a way to catch the event scrolling the page does inside a controller? I have this on my component's controller $onInit:
$scope.$on('scroll', function() {
console.log('Something something');
});
I have only seen ways to do this using .bind() on a directive, like here: Scroll event in AngularJS
I have been lurking the official guide and I have found nothing.