d
Size: a a a
d
AB
d
R
d
MF
handle (за неимением альтернатив):interface IDetachedRouteHandle_As_Internal {
contexts: Map<string, OutletContext>;
componentRef: ComponentRef<any>;
route: TreeNode<ActivatedRoute>;
}
// ...
export class CustomRouteReuseStrategy extends RouteReuseStrategy {
public store(route: ActivatedRouteSnapshot, handle: DetachedRouteHandle|null) {
let _handle = handle as IDetachedRouteHandle_As_Internal | null;
// store...
}
// ...
protected clearCached() {
this._handles.forEach(handle => {
handle.componentRef.instance.ngOnDestroy(); // понятно, что тут надо проверить кучу всего, но в общих чертах...
});
}
}RK
d
RK
R
AS
AB
AS
SS
IZ
IZ
SS
IZ
IZ