Skip to content

Commit

Permalink
Merge pull request #3076 from Tony133/fix/update-color-for-illustrati…
Browse files Browse the repository at this point in the history
…ve-image

fix: update image color for dark mode in the "shared module" section.
  • Loading branch information
kamilmysliwiec authored Aug 12, 2024
2 parents 6058fa5 + c6b601c commit d7667bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ Here is how our directory structure looks now:

In Nest, modules are **singletons** by default, and thus you can share the same instance of any provider between multiple modules effortlessly.

<figure><img src="/assets/Shared_Module_1.png" /></figure>
<figure><img class="illustrative-image" src="/assets/Shared_Module_1.png" /></figure>

Every module is automatically a **shared module**. Once created it can be reused by any module. Let's imagine that we want to share an instance of the `CatsService` between several other modules. In order to do that, we first need to **export** the `CatsService` provider by adding it to the module's `exports` array, as shown below:

Expand Down

0 comments on commit d7667bc

Please sign in to comment.