docs(di): update docs about factory provider dependencies
This commit is contained in:
parent
1797898f90
commit
24f1d16968
|
@ -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.
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue