aboutsummaryrefslogtreecommitdiffstats
path: root/src/AngularPublic.js
diff options
context:
space:
mode:
authorVojta Jina2012-03-08 15:59:32 -0800
committerVojta Jina2012-03-09 10:10:28 -0800
commit00d4427388eeec81d434f9ee96bb7ccc70190923 (patch)
treecd85a694576045cf822ef6e043f5ad87f1df1a8c /src/AngularPublic.js
parente0c9551fd7c716d9d71ed6f4f1d2f5911f53032c (diff)
downloadangular.js-00d4427388eeec81d434f9ee96bb7ccc70190923.tar.bz2
refactor($provide) Rename service -> provider
It registers a provider class, so this makes more sense. Breaks Rename $provide.service -> $provide.provider
Diffstat (limited to 'src/AngularPublic.js')
-rw-r--r--src/AngularPublic.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/AngularPublic.js b/src/AngularPublic.js
index 5bc59653..d0a0e045 100644
--- a/src/AngularPublic.js
+++ b/src/AngularPublic.js
@@ -55,12 +55,12 @@ function publishExternalAPI(angular){
try {
angularModule('ngLocale');
} catch (e) {
- angularModule('ngLocale', []).service('$locale', $LocaleProvider);
+ angularModule('ngLocale', []).provider('$locale', $LocaleProvider);
}
angularModule('ng', ['ngLocale'], ['$provide',
function ngModule($provide) {
- $provide.service('$compile', $CompileProvider).
+ $provide.provider('$compile', $CompileProvider).
directive({
a: htmlAnchorDirective,
input: inputDirective,
@@ -105,7 +105,7 @@ function publishExternalAPI(angular){
}).
directive(ngAttributeAliasDirectives).
directive(ngEventDirectives);
- $provide.service({
+ $provide.provider({
$anchorScroll: $AnchorScrollProvider,
$browser: $BrowserProvider,
$cacheFactory: $CacheFactoryProvider,