diff options
| author | Misko Hevery | 2012-02-27 12:14:48 -0800 |
|---|---|---|
| committer | Misko Hevery | 2012-06-02 16:02:05 -0700 |
| commit | 2e90cdc3d4dff966faed97d3a566e9d9c00c9794 (patch) | |
| tree | 413ba0078f5decf7026791177dfcf8e3ff5f0662 /docs/content/guide/dev_guide.services.creating_services.ngdoc | |
| parent | 581f93ae56ebb0086d0c0989df69a28656395006 (diff) | |
| download | angular.js-2e90cdc3d4dff966faed97d3a566e9d9c00c9794.tar.bz2 | |
docs(dependency injecton): rewrite
Diffstat (limited to 'docs/content/guide/dev_guide.services.creating_services.ngdoc')
| -rw-r--r-- | docs/content/guide/dev_guide.services.creating_services.ngdoc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/content/guide/dev_guide.services.creating_services.ngdoc b/docs/content/guide/dev_guide.services.creating_services.ngdoc index 4ce16a76..67471cdd 100644 --- a/docs/content/guide/dev_guide.services.creating_services.ngdoc +++ b/docs/content/guide/dev_guide.services.creating_services.ngdoc @@ -7,7 +7,7 @@ to write your own custom services. To do this you begin by registering a service with a module either via the {@link api/angular.module Module#factory api} or directly via the {@link api/angular.module.AUTO.$provide $provide} api inside of module config function. -All angular services participate in {@link dev_guide.di dependency injection (DI)} by registering +All angular services participate in {@link di dependency injection (DI)} by registering themselves with Angular's DI system (injector) under a `name` (id) as well as by declaring dependencies which need to be provided for the factory function of the registered service. The ability to swap dependencies for mocks/stubs/dummies in tests allows for services to be highly @@ -49,7 +49,7 @@ create this instance when called. # Dependencies Services can not only be depended upon, but also have its own dependencies. These can be specified -as arguments of the factory function. {@link dev_guide.di.understanding_di Read more} about the DI +as arguments of the factory function. {@link di.understanding_di Read more} about the DI in Angular and the use of array notation and $inject property to make DI annotation minification-proof. |
