Skip to content

Commit 20716b2

Browse files
Merge pull request #1129 from MickL/patch-4
Update components.md (providers)
2 parents f821317 + f33c03f commit 20716b2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

content/components.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,3 +203,11 @@ This is how our directory structure should look now:
203203
<div class="item">main.ts</div>
204204
</div>
205205
</div>
206+
207+
#### Manual instantiation
208+
209+
Thus far, we've discussed how Nest automatically handles most of the details of resolving dependencies. In certain circumstances, you may need to step outside of the built-in Dependency Injection system and manually retrieve or instantiate providers. We briefly discuss two such topics below.
210+
211+
To get existing instances, or instantiate providers dynamically, you can use [Module reference](https://docs.nestjs.com/fundamentals/module-ref).
212+
213+
To get providers within the `bootstrap()` function (for example for standalone applications without controllers, or to utilize a configuration service during bootstrapping) see [Standalone applications](https://docs.nestjs.com/standalone-applications).

0 commit comments

Comments
 (0)