/** * @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