aboutsummaryrefslogtreecommitdiffstats
path: root/docs/content/guide/dev_guide.services.creating_services.ngdoc
diff options
context:
space:
mode:
authorVojta Jina2011-11-11 17:15:22 -0800
committerMisko Hevery2011-11-14 20:31:19 -0800
commitacbd7cdf320f0570fcc1952c8680d4c78bc8fa2c (patch)
tree2483609ada03b9e6ff477596f0402dc24fdd7518 /docs/content/guide/dev_guide.services.creating_services.ngdoc
parent035c7510763a9742294d51ba55aea0b6dd08ea58 (diff)
downloadangular.js-acbd7cdf320f0570fcc1952c8680d4c78bc8fa2c.tar.bz2
style(docs): make jslint happy - fix some warnings
Diffstat (limited to 'docs/content/guide/dev_guide.services.creating_services.ngdoc')
-rw-r--r--docs/content/guide/dev_guide.services.creating_services.ngdoc6
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 b3c3a2ed..397f86c7 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.module.NG` 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.module.NG('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.module.NG Angular Service API}
+* {@link api/angular.module.ng Angular Service API}