Skip to content

Commit c7ac682

Browse files
committed
docs(recipe): update router module
1 parent ceb168e commit c7ac682

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

content/recipes/router-module.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ In such a case, instead of repeating the `/dashboard` prefix within each control
1313
```typescript
1414
@Module({
1515
imports: [
16+
DashboardModule,
1617
RouterModule.register([
1718
{
1819
path: 'dashboard',
@@ -24,6 +25,8 @@ In such a case, instead of repeating the `/dashboard` prefix within each control
2425
export class AppModule {}
2526
```
2627

28+
Next we set the `dashboard` route in the controller decorator like this `@Controller ('dashboard')`.
29+
2730
> info **Hint** The `RouterModule` class is exported from the `@nestjs/core` package.
2831
2932
In addition, you can define hierarchical structures. This means each module can have `children` modules.

0 commit comments

Comments
 (0)