Skip to content

Commit c51b569

Browse files
authored
Changes part about main idea of provider.
As provider is decorated with @Injectable() decorator, it makes more sense that provider can be injected, not that it can inject other dependencies (because, i.e. controllers can do it as well). So, I propose this small change, which can make this part of providers description more clear. Regards.
1 parent d3bb529 commit c51b569

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/components.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
### Providers
22

3-
Providers are a fundamental concept in Nest. Many of the basic Nest classes may be treated as a provider – services, repositories, factories, helpers, and so on. The main idea of a provider is that it can **inject** dependencies; this means objects can create various relationships with each other, and the function of "wiring up" instances of objects can largely be delegated to the Nest runtime system.
3+
Providers are a fundamental concept in Nest. Many of the basic Nest classes may be treated as a provider – services, repositories, factories, helpers, and so on. The main idea of a provider is that it can be **injected** as dependency; this means objects can create various relationships with each other, and the function of "wiring up" instances of objects can largely be delegated to the Nest runtime system.
44

55
<figure><img src="/assets/Components_1.png" /></figure>
66

0 commit comments

Comments
 (0)