From 9e82cebe5be232e6662eccb917affbba93d1d905 Mon Sep 17 00:00:00 2001 From: Nikita Potapenko Date: Fri, 15 Feb 2019 12:04:05 +0200 Subject: [PATCH] docs: clarify behavior of dependency injection at root injector (#28753) PR Close #28753 --- aio/content/guide/dependency-injection-in-action.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aio/content/guide/dependency-injection-in-action.md b/aio/content/guide/dependency-injection-in-action.md index 3e94cbdeb4..e9d91d8a3c 100644 --- a/aio/content/guide/dependency-injection-in-action.md +++ b/aio/content/guide/dependency-injection-in-action.md @@ -151,7 +151,7 @@ through the injector tree until it reaches the root injector. * The first injector configured with a provider supplies the dependency (a service instance or value) to the constructor. -* If no provider is found in the root injector, the DI framework returns null to the constructor. +* If no provider is found in the root injector, the DI framework throws an error. There are a number of options for modifying the default search behavior, using _parameter decorators_ on the service-valued parameters of a class constructor.