ui-view

angularjs使用ui-router切换视图, 自动滚动到顶部_编程

Examples for autoscroll:

<ui-view autoscroll/>
<!-- If autoscroll present with no expression,
     then scroll ui-view into view -->
<ui-view autoscroll/>
 
<!-- If autoscroll present with valid expression,
     then scroll ui-view into view if expression evaluates to true -->
<ui-view autoscroll='true'/>
<ui-view autoscroll='false'/>
<ui-view autoscroll='scopeVariable'/>