Skip to content

Commit f66d654

Browse files
OnkelTempetebacondarwin
authored andcommitted
docs(guide/di): clarify what "services" can be injected into .config() and .run()
Closes angular#8106
1 parent 543cf18 commit f66d654

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/content/guide/di.ngdoc

+3-1
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,9 @@ method or constructor function. These components can be injected with "service"
222222
dependencies.
223223

224224
- The `run` and `config` methods accept a function, which can also be injected with "service"
225-
components as dependencies.
225+
components as dependencies. Note that only providers and constants can be injected into configuration
226+
blocks and only instances and constants can be injected into run blocks.
227+
See [Modules](https://docs.angularjs.org/guide/module#module-loading-dependencies) for additional details.
226228

227229
- Controllers are defined by a constructor function, which can be injected with any of the "service"
228230
components as dependencies, but they can also be provided with special dependencies. See "DI in

0 commit comments

Comments
 (0)