$anchorScrollProvider
Configuration provider for
$anchorScroll service.Description
Instance of AnchorScrollProvider for configuring the $anchorScroll service.
Used to enable or disable automatic scrolling when URL hash is changed by $location service.
Properties
$anchorScrollProvider.autoScrollingEnabled
Enable or disable automatic scrolling on URL hash change
Type: Boolean
Default: true
Example:
angular.module('demo', []) .config([ "$anchorScrollProvider", /** @param {ng.AnchorScrollProvider} $anchorScrollProvider */ ($anchorScrollProvider) => { anchorScrollProvider.autoScrollingEnabled = false; } ]);
For service description, 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.