RouteReuseStrategy

Experimental

Class

What it does

Provides a way to customize when activated routes get reused.

Class Overview

class RouteReuseStrategy {
shouldDetach(route: ActivatedRouteSnapshot) : boolean
store(route: ActivatedRouteSnapshot, handle: DetachedRouteHandle) : void
shouldAttach(route: ActivatedRouteSnapshot) : boolean
retrieve(route: ActivatedRouteSnapshot) : DetachedRouteHandle
shouldReuseRoute(future: ActivatedRouteSnapshot, curr: ActivatedRouteSnapshot) : boolean

}

Class Description

Class Details

exported from @angular/router/index, defined in @angular/router/src/route_reuse_strategy.ts