Skip to content

Commit

Permalink
docs(changes): show second example for
Browse files Browse the repository at this point in the history
  • Loading branch information
shavidze committed May 25, 2023
1 parent e797455 commit b829a2d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions content/fundamentals/circular-dependency.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,13 @@ In order to resolve circular dependencies between modules, use the same `forward
})
export class CommonModule {}
```

That covers one side of the relationship. Now let's do the same with `CatsModule`:

```typescript
@@filename(cats.module)
@Module({
imports: [forwardRef(() => CommonModule)],
})
export class CatsModule {}
```

0 comments on commit b829a2d

Please sign in to comment.