angular/angular.js — Issue #727: Reset scroll position on route change?
Author: danro
Created: 2012-01-19 20:52:53+00:00
State: open

Question- Is there something built in for remembering (and resetting) the scroll position after a route change?

Example- If you had a list view and each item would open a new route for a detail view. This detail view would contain a back button and after clicking it, you would return to the list view with the proper scroll position set. Also, is there a way to know if the route change was caused by the browser's back button?

I could perform the scroll w/ jQuery, but wasn't sure if it was built in. Thanks!