• Overview
@angular/router

UrlHandlingStrategy

Class

Provides a way to migrate AngularJS applications to Angular.

  
    abstract class UrlHandlingStrategy {}
  
  

shouldProcessUrl

boolean

Tells 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.

@paramurlUrlTree
@returnsboolean

extract

Extracts the part of the URL that should be handled by the router. The rest of the URL will remain untouched.

@paramurlUrlTree
@returnsUrlTree

merge

Merges the URL fragment with the rest of the URL.

@paramnewUrlPartUrlTree
@paramrawUrlUrlTree
@returnsUrlTree
Jump to details