W3cubDocs

/Angular

destroyDetachedRouteHandle

Destroys the component associated with a DetachedRouteHandle.

API

function destroyDetachedRouteHandle(handle: DetachedRouteHandle): void;

Description

Destroys the component associated with a DetachedRouteHandle.

This function should be used when a RouteReuseStrategy decides to drop a stored handle and wants to ensure that the component is destroyed.

Super-powered by Google ©2010–2025.
Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.
https://angular.dev/api/router/destroyDetachedRouteHandle