diff --git a/content/fundamentals/circular-dependency.md b/content/fundamentals/circular-dependency.md index fa4202ea2b..3c0da68418 100644 --- a/content/fundamentals/circular-dependency.md +++ b/content/fundamentals/circular-dependency.md @@ -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 {} +```