@iondafi wrote:
I’ve a list page where every clicked item goes to a detail page, when from the detail page the user presses ‘back’ the list view is shown (correctly) but the scroll position is always on top.
I’ve read this https://github.com/ionic-team/ionic/issues/14737 then https://github.com/angular/angular/issues/24547 and https://angular.io/api/router/ExtraOptions#scrollPositionRestoration but any combination doesn’t work
I found this example https://github.com/joanroig/Ionic4-restore-scroll-position but it no longer compiles with newer
'@ionic/angular'
, the classContent
no longer exists.Please have you a working example valid for new 4.x versions?
Ionic: ionic (Ionic CLI) : 4.12.0 Ionic Framework : @ionic/angular 4.9.0 @angular-devkit/build-angular : 0.8.9 @angular-devkit/schematics : 0.8.9 @angular/cli : 6.1.5 @ionic/angular-toolkit : not installed System: NodeJS : v11.12.0 (/usr/local/Cellar/node/11.12.0/bin/node) npm : 6.9.0 OS : macOS Mojave
Posts: 1
Participants: 1