Ion-scroll on-scroll isn't working


#1

Hi all

I’m trying to receive events from the ion-scroll tag bu I can’t get any.

I’ve tried the simplest way:

On HTML (with attached controller that works just fine):

.....

At the controller:
$scope.gotScrolled = function() {
console.log(‘Got scrolled’);
};

If anyone have a suggestion how to make it work… bless you.


#2

You should write <ion-content on-scroll = "gotScrolled()"> or if you use scroll on part of your view <ion-scroll on-scroll = "gotScrolled()">. And it will works.


#3

Thanks man!
It works just fine now