docs: add information on when not to use tree-shakable providers (#23634)

PR Close #23634
This commit is contained in:
Vani 2018-05-01 11:26:48 -07:00 committed by Igor Minar
parent 7ba26b140b
commit d71329d55c
1 changed files with 6 additions and 0 deletions

View File

@ -440,6 +440,12 @@ The service can be instantiated by configuring a factory function as shown below
<code-example path="dependency-injection/src/app/tree-shaking/service.0.ts" title="src/app/tree-shaking/service.0.ts" linenums="false"> </code-example> <code-example path="dependency-injection/src/app/tree-shaking/service.0.ts" title="src/app/tree-shaking/service.0.ts" linenums="false"> </code-example>
<div class="l-sub-section">
To override tree-shakable providers, register the provider using the `providers: []` array syntax of any Angular decorator that supports it.
</div>
{@a injector-config} {@a injector-config}
{@a bootstrap} {@a bootstrap}