RouteReuseStrategy
Provides a way to customize when activated routes get reused.
abstract class RouteReuseStrategy {
abstract shouldDetach(route: ActivatedRouteSnapshot): boolean
abstract store(route: ActivatedRouteSnapshot, handle: DetachedRouteHandle): void
abstract shouldAttach(route: ActivatedRouteSnapshot): boolean
abstract retrieve(route: ActivatedRouteSnapshot): DetachedRouteHandle | null
abstract shouldReuseRoute(future: ActivatedRouteSnapshot, curr: ActivatedRouteSnapshot): boolean
}
方法
Determines if this route (and its subtree) should be detached to be reused later | |||
参数
返回值
|
Stores the detached route. | ||||||
参数
返回值
| ||||||
Storing a |
Determines if this route (and its subtree) should be reattached | |||
参数
返回值
|
Retrieves the previously stored route | |||
参数
返回值
|
Determines if a route should be reused | ||||||
参数
返回值
|