diff options
| author | Misko Hevery | 2011-11-10 18:47:47 -0800 |
|---|---|---|
| committer | Misko Hevery | 2011-11-14 20:31:18 -0800 |
| commit | b09595a3c12ba761772084b94767b635c5bbfaf2 (patch) | |
| tree | a86f45599ee86964ea2bd09e5c336280ef98a769 /docs/content/guide/dev_guide.services.creating_services.ngdoc | |
| parent | f6d98f1472338a77b2f146087bcb8560f472e5d1 (diff) | |
| download | angular.js-b09595a3c12ba761772084b94767b635c5bbfaf2.tar.bz2 | |
fix(doc) cleanup all api doc link warnings
Diffstat (limited to 'docs/content/guide/dev_guide.services.creating_services.ngdoc')
| -rw-r--r-- | docs/content/guide/dev_guide.services.creating_services.ngdoc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/content/guide/dev_guide.services.creating_services.ngdoc b/docs/content/guide/dev_guide.services.creating_services.ngdoc index 74ade376..b3c3a2ed 100644 --- a/docs/content/guide/dev_guide.services.creating_services.ngdoc +++ b/docs/content/guide/dev_guide.services.creating_services.ngdoc @@ -6,7 +6,7 @@ While angular offers several useful services, for any nontrivial application you to write your own custom services. To do this you begin by registering a service factory function that angular's DI will use to create the service object when it is needed. -The `angular.service` method accepts three parameters: +The `angular.module.NG` method accepts three parameters: - `{string} name` - Name of the service. - `{function()} factory` - Factory function(called just once by DI). @@ -32,7 +32,7 @@ stores all notifications; after the third one, the service displays all of the n window alert. <pre> - angular.service('notify', function(win) { + angular.module.NG('notify', function(win) { var msgs = []; return function(msg) { msgs.push(msg); @@ -55,4 +55,4 @@ window alert. ## Related API -* {@link api/angular.service Angular Service API} +* {@link api/angular.module.NG Angular Service API} |
