$anchorScrollProvider

Improve this Doc View Source $anchorScrollProvider

  1. $anchorScroll
  2. provider in module ng

Use $anchorScrollProvider to disable automatic scrolling whenever $location.hash() changes.

Methods

  • disableAutoScrolling();

    By default, $anchorScroll() will automatically detect changes to $location.hash() and scroll to the element matching the new hash.
    Use this method to disable automatic scrolling.

    If automatic scrolling is disabled, one must explicitly call $anchorScroll() in order to scroll to the element related to the current hash.

© 2010–2016 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://code.angularjs.org/1.3.20/docs/api/ng/provider/$anchorScrollProvider

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部