docs(di): update docs about factory provider dependencies

This commit is contained in:
Pascal Precht 2015-10-20 00:46:01 +01:00 committed by Naomi Black
parent 1797898f90
commit 24f1d16968
1 changed files with 2 additions and 2 deletions

View File

@ -484,8 +484,8 @@ include ../../../../_includes/_util-fns
:markdown :markdown
The `useFactory` field tells Angular that the provider is a factory function and that its implementation is the `heroServiceFactory`. The `useFactory` field tells Angular that the provider is a factory function and that its implementation is the `heroServiceFactory`.
The `deps` property is an array of provider mappings just like the argument to `bootstrap`. The `deps` property is an array of provider mapping tokens.
The `Logger` and `UserService` classes serve as their own provider mappings. The `Logger` and `UserService` classes serve as tokens for their own class provider mappings.
:markdown :markdown
Finally, we create the mapping and adjust the bootstrapping to include that mapping in its provider configuration. Finally, we create the mapping and adjust the bootstrapping to include that mapping in its provider configuration.
``` ```