()
| 43 | ) {} |
| 44 | |
| 45 | create() { |
| 46 | this.componentRef = createComponent(DynamicComponent, {environmentInjector: this.injector}); |
| 47 | (this.componentRef.hostView as InternalViewRef<unknown>).attachToAppRef(this.appRef); |
| 48 | document.body.appendChild(this.componentRef.instance.elRef.nativeElement); |
| 49 | } |
| 50 | |
| 51 | destroy() { |
| 52 | (this.componentRef.hostView as InternalViewRef<unknown>).detachFromAppRef(); |
nothing calls this directly
no test coverage detected