UNPKG

ui-router-core

Version:

UI-Router Core: Framework agnostic, State-based routing for JavaScript Single Page Apps

24 lines 1.07 kB
"use strict"; var predicates_1 = require("../common/predicates"); var common_1 = require("../common/common"); /** A `LocationConfig` mock that gets/sets all config from an in-memory object */ var MemoryLocationConfig = (function () { function MemoryLocationConfig() { var _this = this; this._baseHref = ''; this._port = 80; this._protocol = "http"; this._host = "localhost"; this._hashPrefix = ""; this.port = function () { return _this._port; }; this.protocol = function () { return _this._protocol; }; this.host = function () { return _this._host; }; this.baseHref = function () { return _this._baseHref; }; this.html5Mode = function () { return false; }; this.hashPrefix = function (newval) { return predicates_1.isDefined(newval) ? _this._hashPrefix = newval : _this._hashPrefix; }; this.dispose = common_1.noop; } return MemoryLocationConfig; }()); exports.MemoryLocationConfig = MemoryLocationConfig; //# sourceMappingURL=memoryLocationConfig.js.map