When migrating Angular projects to use Standalone Components, circular dependencies between recursively rendering components cause runtime errors. The fix uses Angular's `forwardRef` function from `@angular/core` in the child component's imports array, allowing it to reference the parent component before it's fully initialized — avoiding the need for a full refactor.

3m read timeFrom timdeschryver.dev
Post cover image