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

ui-view

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'/>
posted @ 2017-09-16 17:52  CooMark  阅读(233)  评论(0编辑  收藏  举报