Scrolling event in ion-content

You can use addScrollListener or onScrollEnd

import {Component, ViewChild} from '@angular/core';
import {Content} from 'ionic-angular';
@Component({
    templateUrl: '..'
})
export class ProjectPage {
    @ViewChild(Content)
    content:Content;

    onPageScroll(event) {
        console.log(event.target.scrollTop);
    }

    ngAfterViewInit() {
        this.content.addScrollListener(this.onPageScroll);
    }

}
2 Likes