From d71329d55c2e624ba00d7be2308d03c61d27f76c Mon Sep 17 00:00:00 2001 From: Vani Date: Tue, 1 May 2018 11:26:48 -0700 Subject: [PATCH] docs: add information on when not to use tree-shakable providers (#23634) PR Close #23634 --- aio/content/guide/dependency-injection.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/aio/content/guide/dependency-injection.md b/aio/content/guide/dependency-injection.md index 5604f30b21..cf982bb931 100644 --- a/aio/content/guide/dependency-injection.md +++ b/aio/content/guide/dependency-injection.md @@ -440,6 +440,12 @@ The service can be instantiated by configuring a factory function as shown below +
+ +To override tree-shakable providers, register the provider using the `providers: []` array syntax of any Angular decorator that supports it. + +
+ {@a injector-config} {@a bootstrap}