in ionic2.3 I used ion-content ionScroll,not trigger.
ngAfterViewInit(){
//nothing happend
this.scrollArea.ionScroll.subscribe((ev) => {
console.log(ev)
});
not work.who can solve?
in ionic2.3 I used ion-content ionScroll,not trigger.
ngAfterViewInit(){
//nothing happend
this.scrollArea.ionScroll.subscribe((ev) => {
console.log(ev)
});
not work.who can solve?
I have the same problem! with “ionic-angular”: “2.3.0” and found this solution
ionViewWillEnter() {
this.content.enableScrollListener();
this.content.ionScroll.subscribe(($event: any) => {
console.log($event)
});
}
Seems much simpler to me to do this:
<ion-content (ionScroll)="onScrollStarted()">