diff options
| author | Vojta Jina | 2011-11-11 17:15:22 -0800 |
|---|---|---|
| committer | Misko Hevery | 2011-11-14 20:31:19 -0800 |
| commit | acbd7cdf320f0570fcc1952c8680d4c78bc8fa2c (patch) | |
| tree | 2483609ada03b9e6ff477596f0402dc24fdd7518 /docs/content/guide/dev_guide.services.managing_dependencies.ngdoc | |
| parent | 035c7510763a9742294d51ba55aea0b6dd08ea58 (diff) | |
| download | angular.js-acbd7cdf320f0570fcc1952c8680d4c78bc8fa2c.tar.bz2 | |
style(docs): make jslint happy - fix some warnings
Diffstat (limited to 'docs/content/guide/dev_guide.services.managing_dependencies.ngdoc')
| -rw-r--r-- | docs/content/guide/dev_guide.services.managing_dependencies.ngdoc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/content/guide/dev_guide.services.managing_dependencies.ngdoc b/docs/content/guide/dev_guide.services.managing_dependencies.ngdoc index a172f97c..b3135b83 100644 --- a/docs/content/guide/dev_guide.services.managing_dependencies.ngdoc +++ b/docs/content/guide/dev_guide.services.managing_dependencies.ngdoc @@ -19,7 +19,7 @@ provided by angular's web framework: * * @param {*} message Message to be logged. */ -angular.module.NG('batchLog', function($defer, $log) { +angular.module.ng('batchLog', function($defer, $log) { var messageQueue = []; function log() { @@ -43,7 +43,7 @@ angular.module.NG('batchLog', function($defer, $log) { * routeTemplateMonitor monitors each $route change and logs the current * template via the batchLog service. */ -angular.module.NG('routeTemplateMonitor', function($route, batchLog) { +angular.module.ng('routeTemplateMonitor', function($route, batchLog) { this.$on('$afterRouteChange', function() { batchLog($route.current ? $route.current.template : null); }); @@ -52,10 +52,10 @@ angular.module.NG('routeTemplateMonitor', function($route, batchLog) { Things to notice in this example: -* The `batchLog` service depends on the built-in {@link api/angular.module.NG.$defer $defer} and -{@link api/angular.module.NG.$log $log} services, and allows messages to be logged into the +* The `batchLog` service depends on the built-in {@link api/angular.module.ng.$defer $defer} and +{@link api/angular.module.ng.$log $log} services, and allows messages to be logged into the `console.log` in batches. -* The `routeTemplateMonitor` service depends on the built-in {@link api/angular.module.NG.$route +* The `routeTemplateMonitor` service depends on the built-in {@link api/angular.module.ng.$route $route} service as well as our custom `batchLog` service. * The `routeTemplateMonitor` service is declared to be eager, so that it is started as soon as the application starts. @@ -80,5 +80,5 @@ order to inject. ## Related API -* {@link api/angular.module.NG Angular Service API} +* {@link api/angular.module.ng Angular Service API} * {@link api/angular.injector Angular Injector API} |
