$anchorScrollProvider
Configure automatic anchor scrolling when the URL hash changes.
$anchorScrollProvider controls whether $anchorScroll reacts automatically
when $location changes the URL hash.
Exact signatures live in TypeDoc:
Disable Automatic Scrolling
angular.module("demo", []).config(($anchorScrollProvider) => {
$anchorScrollProvider.autoScrollingEnabled = false;
});
Disable automatic scrolling when the application needs to coordinate hash changes with custom routing, animation, or focus management.
For service usage, see $anchorScroll.
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.