Hi guys, I came across this problem.
home.html
<ion-content (ionScroll)=“getscrollTop()”>
home.ts
@ViewChild(Content) content: Content;
getscrollTop(){
console.log(this.content.scrollTop)
}
When I scrolled to bottom, the this.content.scrollTop value was 190. But when I went to the next page and then go back. It’s value started at 0 when I tried scrolling. Any workaround on this where I can retain the same value? This kinda solved my issue in my expandable header component.
Thank you so much!