bitfront-library
Version:
Angular CLI project with components and classes used by other Angular projects of the BIT foundation.
27 lines • 1.29 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.SessionSharedService = void 0;
var core_1 = require("@angular/core");
var i0 = require("@angular/core");
var SessionSharedService = /** @class */ (function () {
//TO-DO. Guardarlo en un localstorage por un tiempo limitado por si hacen F5
function SessionSharedService() {
this.data = new Map();
}
SessionSharedService.prototype.get = function (key) {
// console.log('shared get', key);
return this.data.get(key);
};
SessionSharedService.prototype.set = function (key, value) {
// console.log('shared set', key, value);
this.data.set(key, value);
};
SessionSharedService.ɵfac = function SessionSharedService_Factory(t) { return new (t || SessionSharedService)(); };
SessionSharedService.ɵprov = i0.ɵɵdefineInjectable({ token: SessionSharedService, factory: SessionSharedService.ɵfac });
return SessionSharedService;
}());
exports.SessionSharedService = SessionSharedService;
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SessionSharedService, [{
type: core_1.Injectable
}], function () { return []; }, null); })();
//# sourceMappingURL=session-shared.service.js.map