Content scrolling questions


#1

I am building an app that uses many long lists and I had some questions about using ion-content scroll.

I want to be able to, on load of the page, scroll to a specific list item. How should I do this?

I also want to be able to scroll down the list and click on an item that takes me to another page, but I want the scroll position to stay the same when I come back. How should I implement this functionality?


#2

I don’t know about the scroll to a specific list item other than to suggest using anchor scrolling.

As for coming back to the previous position, spend some time reviewing the docs for $ionicScrollDelegate:

Beta : http://ionicframework.com/docs/api/service/$ionicScrollDelegate/
Nightly : http://ionicframework.com/docs/nightly/api/service/$ionicScrollDelegate/

Look here too : Accessing scroll position