- const element = await this.customMarkupService.buildElement(this.content)
- this.contentWrapper.nativeElement.appendChild(element)
- }
+ if (!this.content) return
+
+ const { rootElement, componentsLoaded } = await this.customMarkupService.buildElement(this.content)
+ this.contentWrapper.nativeElement.appendChild(rootElement)