Skip to content

Commit

Permalink
Merge pull request #1933 from Youmoo/patch-1
Browse files Browse the repository at this point in the history
Typo perhaps
  • Loading branch information
kamilmysliwiec committed May 26, 2021
2 parents 225d83f + 5261654 commit 5f0948a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/fundamentals/dynamic-modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ In fact, what our `register()` method will return is a `DynamicModule`. A dynami

```typescript
@Module({
imports: [DogsService],
imports: [DogsModule],
controllers: [CatsController],
providers: [CatsService],
exports: [CatsService]
Expand All @@ -128,7 +128,7 @@ Dynamic modules must return an object with the exact same interface, plus one ad

> info **Hint** For a dynamic module, all properties of the module options object are optional **except** `module`.
What about the static `register()` method? We can now see that its job is to return an object that has the `DynamicModule` interface. When we call it, we are effectively providing a module to the `imports` list, similar to the way we would do so in the static case by listing a module class name. In other words, the dynamic module API simply returns a module, but rather than fix the properties in the `@Modules` decorator, we specify them programmatically.
What about the static `register()` method? We can now see that its job is to return an object that has the `DynamicModule` interface. When we call it, we are effectively providing a module to the `imports` list, similar to the way we would do so in the static case by listing a module class name. In other words, the dynamic module API simply returns a module, but rather than fix the properties in the `@Module` decorator, we specify them programmatically.

There are still a couple of details to cover to help make the picture complete:

Expand Down

0 comments on commit 5f0948a

Please sign in to comment.