* Called when the `RouteReuseStrategy` instructs to re-attach a previously detached subtree
(ref: ComponentRef<any>, activatedRoute: ActivatedRoute)
| 364 | * Called when the `RouteReuseStrategy` instructs to re-attach a previously detached subtree |
| 365 | */ |
| 366 | attach(ref: ComponentRef<any>, activatedRoute: ActivatedRoute): void { |
| 367 | this.activated = ref; |
| 368 | this._activatedRoute = activatedRoute; |
| 369 | this.location.insert(ref.hostView); |
| 370 | this.inputBinder?.bindActivatedRouteToOutletComponent(this, this.location.injector); |
| 371 | this.attachEvents.emit(ref.instance); |
| 372 | } |
| 373 | |
| 374 | deactivate(): void { |
| 375 | if (this.activated) { |
no test coverage detected