diff --git a/packages/x6-angular-shape/src/view.ts b/packages/x6-angular-shape/src/view.ts index e4144a1a053..63eb4129162 100644 --- a/packages/x6-angular-shape/src/view.ts +++ b/packages/x6-angular-shape/src/view.ts @@ -61,7 +61,9 @@ export class AngularShapeView extends NodeView { this.setInstanceInput(content, embeddedViewRef), ) } else { - const componentRef = viewContainerRef.createComponent(content) + const componentRef = viewContainerRef.createComponent(content, { + injector, + }) const insertNode = (componentRef.hostView as EmbeddedViewRef) .rootNodes[0] as HTMLElement container.appendChild(insertNode)