I have an ion-scroll component. I\'m trying to execute some code during scrolling. In Ionic 1 this was possible using the on-scroll attribute and passing a function.
I found this solution from here: https://forum.ionicframework.com/t/ionic-2-rc4-addscrolllistener/73145/16?u=kamleshappster
this.content.ionScroll.subscribe(($event) => { this.scrollAmount = $event.scrollTop; });