• Overview
@angular/router

RouteReuseStrategy

Class

Provides a way to customize when activated routes get reused.

  
    abstract class RouteReuseStrategy {}
  
  

shouldDetach

boolean

Determines if this route (and its subtree) should be detached to be reused later

@returnsboolean

store

void

Stores the detached route.

Storing a null value should erase the previously stored value.

@paramhandleDetachedRouteHandle | null
@returnsvoid

shouldAttach

boolean

Determines if this route (and its subtree) should be reattached

@returnsboolean

retrieve

Retrieves the previously stored route

@returnsDetachedRouteHandle | null

shouldReuseRoute

boolean

Determines if a route should be reused

@returnsboolean
Jump to details