aboutsummaryrefslogtreecommitdiffstats
path: root/src/AngularPublic.js
diff options
context:
space:
mode:
authorVojta Jina2012-01-12 03:00:34 -0800
committerVojta Jina2012-01-13 01:07:12 -0800
commit15fd735793cffe89fdf9662275409cdcdb3e801a (patch)
treece5699ab3375d41cfcffb88ed93236b7ff96a366 /src/AngularPublic.js
parent985d3d75586a16020d78564753f9b46ec9091929 (diff)
downloadangular.js-15fd735793cffe89fdf9662275409cdcdb3e801a.tar.bz2
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.
Diffstat (limited to 'src/AngularPublic.js')
-rw-r--r--src/AngularPublic.js2
1 files changed, 1 insertions, 1 deletions
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);