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 <
ui-router 0.2.8
0.2.0
Place on top
..... Code to scroll: $rootScope.$on('$stateChangeStart', function() { $anchorScroll('top'); }); 0 讨论(0) 查看其它10个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
Code to scroll:
$rootScope.$on('$stateChangeStart', function() { $anchorScroll('top'); });