/**
 * @fileoverview added by tsickle
 * @suppress {checkTypes} checked by tsc
 */
import { Injectable } from '@angular/core';
import { Subject } from 'rxjs';
var RouteCacheController = /** @class */ (function () {
    function RouteCacheController() {
        this.hasHistorySource = new Subject();
        this.hasCache = this.hasHistorySource.asObservable();
    }
    /**
     * @param {?} x
     * @return {?}
     */
    RouteCacheController.prototype.isCacheCurrentView = /**
     * @param {?} x
     * @return {?}
     */
    function (x) {
        this.hasHistorySource.next(x);
    };
    RouteCacheController.decorators = [
        { type: Injectable },
    ];
    /** @nocollapse */
    RouteCacheController.ctorParameters = function () { return []; };
    return RouteCacheController;
}());
export { RouteCacheController };
function RouteCacheController_tsickle_Closure_declarations() {
    /** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
    RouteCacheController.decorators;
    /**
     * @nocollapse
     * @type {function(): !Array<(null|{type: ?, decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>)})>}
     */
    RouteCacheController.ctorParameters;
    /** @type {?} */
    RouteCacheController.prototype.hasCache;
    /** @type {?} */
    RouteCacheController.prototype.hasHistorySource;
}

//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm91dGUtY2FjaGUtY29udHJvbGxlci5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0B0YW5iby91aS1uYXRpdmUvIiwic291cmNlcyI6WyJsaWIvcm91dGVyL3JvdXRlci9yb3V0ZS1jYWNoZS1jb250cm9sbGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzNDLE9BQU8sRUFBRSxPQUFPLEVBQWMsTUFBTSxNQUFNLENBQUM7O0lBT3pDO2dDQUYyQixJQUFJLE9BQU8sRUFBVztRQUcvQyxJQUFJLENBQUMsUUFBUSxHQUFHLElBQUksQ0FBQyxnQkFBZ0IsQ0FBQyxZQUFZLEVBQUUsQ0F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