From 3ff0ddc38af87bbbf520dd2fbcc74215f854158f Mon Sep 17 00:00:00 2001 From: Eve-Sama <948832626@qq.com> Date: Thu, 18 Apr 2024 15:39:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20Angular=20=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E5=86=85=E9=83=A8=E6=97=A0=E6=B3=95=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E5=A4=96=E9=83=A8=E6=9C=8D=E5=8A=A1=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/x6-angular-shape/src/view.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)