1
0

Moved tests from ContextHelpDirective to ContextHelpWrapperComponent and added more tests

This commit is contained in:
Koen Pauwels
2023-01-09 17:15:07 +01:00
parent 365b0208d9
commit cad4f74173
4 changed files with 129 additions and 71 deletions

View File

@@ -59,6 +59,7 @@ export class ContextHelpDirective implements OnChanges, OnDestroy {
= this.componentFactoryResolver.resolveComponentFactory(ContextHelpWrapperComponent);
this.wrapper = this.viewContainerRef.createComponent(factory);
}
console.log(this.templateRef);
this.wrapper.instance.templateRef = this.templateRef;
this.wrapper.instance.content = this.dsContextHelp.content;
this.wrapper.instance.id = this.dsContextHelp.id;