I'm creating and the fly with ComponentFactory a Component which I use as an Tooltip on yFiles (the fantastic HTML diagramming from yWorks).
I can't get the Tooltips to show and when the Tooltip closes it leaves artifacts.
Anyone got some advice?
this.component = this.factory.create(this.injector);
this.component.instance.entity = entitySingle;
this.component.location.nativeElement.class = 'single-entity-card';
this.component.changeDetectorRef.detectChanges();
this.component.onDestroy(() => {
// console.log('destroy');
super.ngOnDestroy();
this.graphComponent.invalidate();
});
tooltip.appendChild(this.component.location.nativeElement);