Skip to content

Commit 5f0948a

Browse files
Merge pull request #1933 from Youmoo/patch-1
Typo perhaps
2 parents 225d83f + 5261654 commit 5f0948a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/fundamentals/dynamic-modules.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ In fact, what our `register()` method will return is a `DynamicModule`. A dynami
117117

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

129129
> info **Hint** For a dynamic module, all properties of the module options object are optional **except** `module`.
130130
131-
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.
131+
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.
132132

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

0 commit comments

Comments
 (0)