Fixed text (without HTML tags) not being passed to child components

This commit is contained in:
Alexandre Vryghem
2023-02-08 15:07:02 +01:00
parent da1a20096b
commit b4acb5cbed

View File

@@ -91,7 +91,7 @@ export abstract class ThemedComponent<T> implements OnInit, OnDestroy, OnChanges
).subscribe((constructor: GenericConstructor<T>) => {
const factory = this.resolver.resolveComponentFactory(constructor);
this.compRef = this.vcr.createComponent(factory, undefined, undefined, [this.themedElementContent.nativeElement.children]);
this.compRef = this.vcr.createComponent(factory, undefined, undefined, [this.themedElementContent.nativeElement.childNodes]);
this.connectInputsAndOutputs();
this.cdr.markForCheck();
this.themedElementContent.nativeElement.remove();