Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
public addDynamicNode(node: any) {
const factory = this.factoryResolver.resolveComponentFactory(DynamicNodeComponent);
const component = factory.create(this.rootViewContainer.parentInjector);
(<any>component.instance).node = node;
(<any>component.instance).jsPlumbInstance = this.jsPlumbInstance;
this.rootViewContainer.insert(component.hostView);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment