From 15fd735793cffe89fdf9662275409cdcdb3e801a Mon Sep 17 00:00:00 2001 From: Vojta Jina Date: Thu, 12 Jan 2012 03:00:34 -0800 Subject: refactor($autoScroll): rename to $anchorScroll and allow disabling auto scrolling (links) Now, that we have autoscroll attribute on ng:include, there is no reason to disable the service completely, so $anchorScrollProvider.disableAutoScrolling() means it won't be scrolling when $location.hash() changes. And then, it's not $autoScroll at all, it actually scrolls to anchor when it's called, so I renamed it to $anchorScroll. --- src/AngularPublic.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/AngularPublic.js') diff --git a/src/AngularPublic.js b/src/AngularPublic.js index 4973f574..3614eb9a 100644 --- a/src/AngularPublic.js +++ b/src/AngularPublic.js @@ -66,7 +66,7 @@ function publishExternalAPI(angular){ $provide.value('$directive', angularDirective); $provide.value('$widget', angularWidget); - $provide.service('$autoScroll', $AutoScrollProvider); + $provide.service('$anchorScroll', $AnchorScrollProvider); $provide.service('$browser', $BrowserProvider); $provide.service('$cacheFactory', $CacheFactoryProvider); $provide.service('$compile', $CompileProvider); -- cgit v1.2.3