I\'ve just upgraded to ui-router 0.2.8
from 0.2.0
and I\'ve noticed that when the state changes, the scroll position jumps to the top of te child <
Since $stateChangeSuccess
seems not to be available anymore in current AngularJS (as 1.2.x) I changed
Rishul Mattas example to the following which works fine for me:
app.run(function ($rootScope) {
$rootScope.$on('$viewContentLoaded',function(){
jQuery('html, body').animate({ scrollTop: 0 }, 200);
});
});