diff options
| author | Vojta Jina | 2012-03-08 15:59:32 -0800 |
|---|---|---|
| committer | Vojta Jina | 2012-03-09 10:10:28 -0800 |
| commit | 00d4427388eeec81d434f9ee96bb7ccc70190923 (patch) | |
| tree | cd85a694576045cf822ef6e043f5ad87f1df1a8c /src/AngularPublic.js | |
| parent | e0c9551fd7c716d9d71ed6f4f1d2f5911f53032c (diff) | |
| download | angular.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.js | 6 |
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, |
