diff --git a/packages/x6-angular-shape/src/view.ts b/packages/x6-angular-shape/src/view.ts index 91ec3afc36e..63147531a1a 100644 --- a/packages/x6-angular-shape/src/view.ts +++ b/packages/x6-angular-shape/src/view.ts @@ -69,6 +69,7 @@ export class AngularShapeView extends NodeView { node.on('change:data', () => this.setInstanceInput(content, componentRef), ) + node.on('removed', () => componentRef.destroy()) } } }