Skip to content

Commit

Permalink
docs: add information on when not to use tree-shakable providers (#23634
Browse files Browse the repository at this point in the history
)

PR Close #23634
  • Loading branch information
sreevani-ship-it authored and IgorMinar committed May 2, 2018
1 parent 7ba26b1 commit d71329d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions aio/content/guide/dependency-injection.md
Original file line number Diff line number Diff line change
Expand Up @@ -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>

<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 bootstrap}

Expand Down

0 comments on commit d71329d

Please sign in to comment.