$uiViewScroll (service in module ui.router.state )

Description

When called with a jqLite element, it scrolls the element into view (after a $timeout so the DOM has time to refresh).

If you prefer to rely on $anchorScroll to scroll the view to the anchor, this can be enabled by calling $uiViewScrollProvider.useAnchorScroll().

Dependencies