()
| 313 | ) {} |
| 314 | |
| 315 | create() { |
| 316 | // Component to be bootstrapped into an element with the `app-root` id. |
| 317 | this.componentRef = createComponent(DynamicComponent, { |
| 318 | environmentInjector: this.injector, |
| 319 | hostElement: this.elementRef.nativeElement.querySelector('#app-root')!, |
| 320 | }); |
| 321 | this.appRef.attachView(this.componentRef.hostView); |
| 322 | } |
| 323 | |
| 324 | destroy() { |
| 325 | this.componentRef.destroy(); |
nothing calls this directly
no test coverage detected