I’m confused

Navigating (back) to the page without reloading (AngularJS)

Hello.

I have an app which has 'list page' and 'detail page'. It has infinite scrolling and stuff.

When an user is scrolling down the 'list page', new content loads, everything is cool. He choose a specific item, it redirects him to the 'detail page' of chosen item, but....
when he hits the 'back' button, the list is loading from the begining and there is no scrolled content, or scroll position. He needs to scroll down from the beggining.

I use window.history.back() to redirect user back. Also tried back-button directive, but still the same result.

var $window = Apperyio.get("$window");
$window.history.back();


How can I redirect user back (or to a specific page) without loading its contents from the beginning?

Greetings
1 person has
this problem
+1
Reply