route_reuse_strategy.js
1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* \@whatItDoes Provides a way to customize when activated routes get reused.
*
* \@experimental
* @abstract
*/
export var RouteReuseStrategy = (function () {
function RouteReuseStrategy() {
}
/**
* Determines if this route (and its subtree) should be detached to be reused later
* @abstract
* @param {?} route
* @return {?}
*/
RouteReuseStrategy.prototype.shouldDetach = function (route) { };
/**
* Stores the detached route
* @abstract
* @param {?} route
* @param {?} handle
* @return {?}
*/
RouteReuseStrategy.prototype.store = function (route, handle) { };
/**
* Determines if this route (and its subtree) should be reattached
* @abstract
* @param {?} route
* @return {?}
*/
RouteReuseStrategy.prototype.shouldAttach = function (route) { };
/**
* Retrieves the previously stored route
* @abstract
* @param {?} route
* @return {?}
*/
RouteReuseStrategy.prototype.retrieve = function (route) { };
/**
* Determines if a route should be reused
* @abstract
* @param {?} future
* @param {?} curr
* @return {?}
*/
RouteReuseStrategy.prototype.shouldReuseRoute = function (future, curr) { };
return RouteReuseStrategy;
}());
//# sourceMappingURL=route_reuse_strategy.js.map