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