File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,19 @@ function $AnchorScrollProvider() {
53
53
54
54
var autoScrollingEnabled = true ;
55
55
56
+ /**
57
+ * @ngdoc method
58
+ * @name $anchorScrollProvider#disableAutoScrolling
59
+ *
60
+ * @description
61
+ * By default, {@link ng.$anchorScroll $anchorScroll()} will automatically detect changes to
62
+ * {@link ng.$location#hash $location.hash()} and scroll to the element matching the new hash.<br />
63
+ * Use this method to disable automatic scrolling.
64
+ *
65
+ * If automatic scrolling is disabled, one must explicitly call
66
+ * {@link ng.$anchorScroll $anchorScroll()} in order to scroll to the element related to the
67
+ * current hash.
68
+ */
56
69
this . disableAutoScrolling = function ( ) {
57
70
autoScrollingEnabled = false ;
58
71
} ;
You can’t perform that action at this time.
0 commit comments