UrlHandlingStrategy
Provides a way to migrate AngularJS applications to Angular.
API
abstract class UrlHandlingStrategy {
abstract shouldProcessUrl(url: UrlTree): boolean;
abstract extract(url: UrlTree): UrlTree;
abstract merge(newUrlPart: UrlTree, rawUrl: UrlTree): UrlTree;
}
shouldProcessUrl
booleanTells the router if this URL should be processed.
When it returns true, the router will execute the regular navigation. When it returns false, the router will set the router state to an empty state. As a result, all the active components will be destroyed.
@returns
boolean
extract
UrlTree
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/UrlHandlingStrategy