Angular ui-router scroll to top, not to ui-view

后端 未结 10 1373
情话喂你
情话喂你 2020-12-12 16:00

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 <

10条回答
  •  伪装坚强ぢ
    2020-12-12 16:41

    1) I think the easiest way it to put autoscroll="false" on the ui-view and manipulate the scrolling in the $viewContentLoaded event.

    2) This is the browser's default behavior on anchors

提交回复
热议问题