diff options
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} |
