UNPKG

1.46 kBJavaScriptView Raw
1"use strict";
2var __extends = (this && this.__extends) || (function () {
3 var extendStatics = function (d, b) {
4 extendStatics = Object.setPrototypeOf ||
5 ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6 function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
7 return extendStatics(d, b);
8 };
9 return function (d, b) {
10 extendStatics(d, b);
11 function __() { this.constructor = d; }
12 d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
13 };
14})();
15Object.defineProperty(exports, "__esModule", { value: true });
16exports.MemoryLocationService = void 0;
17var baseLocationService_1 = require("./baseLocationService");
18/** A `LocationServices` that gets/sets the current location from an in-memory object */
19var MemoryLocationService = /** @class */ (function (_super) {
20 __extends(MemoryLocationService, _super);
21 function MemoryLocationService(router) {
22 return _super.call(this, router, true) || this;
23 }
24 MemoryLocationService.prototype._get = function () {
25 return this._url;
26 };
27 MemoryLocationService.prototype._set = function (state, title, url, replace) {
28 this._url = url;
29 };
30 return MemoryLocationService;
31}(baseLocationService_1.BaseLocationServices));
32exports.MemoryLocationService = MemoryLocationService;
33//# sourceMappingURL=memoryLocationService.js.map
\No newline at end of file