()
| 302 | ) {} |
| 303 | |
| 304 | create() { |
| 305 | // Component to be bootstrapped into an element with the `app-root` id. |
| 306 | this.componentRef = createComponent(DynamicComponent, { |
| 307 | environmentInjector: this.injector, |
| 308 | hostElement: this.elementRef.nativeElement.querySelector('#app-root')!, |
| 309 | }); |
| 310 | this.appRef.attachView(this.componentRef.hostView); |
| 311 | } |
| 312 | |
| 313 | destroy() { |
| 314 | this.componentRef.destroy(); |
nothing calls this directly
no test coverage detected