From b829a2de931273ec6c7f6ab3c83608a067b0cbbc Mon Sep 17 00:00:00 2001 From: Saba Shavidze Date: Thu, 25 May 2023 18:32:16 +0400 Subject: [PATCH] docs(changes): show second example for --- content/fundamentals/circular-dependency.md | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 {} +```