UNPKG

781 BJavaScriptView Raw
1"use strict";
2var async_1 = require('../../facade/async');
3var lang_1 = require('../../facade/lang');
4var instruction_1 = require('../../instruction');
5var SyncRouteHandler = (function () {
6 function SyncRouteHandler(componentType, data) {
7 this.componentType = componentType;
8 /** @internal */
9 this._resolvedComponent = null;
10 this._resolvedComponent = async_1.PromiseWrapper.resolve(componentType);
11 this.data = lang_1.isPresent(data) ? new instruction_1.RouteData(data) : instruction_1.BLANK_ROUTE_DATA;
12 }
13 SyncRouteHandler.prototype.resolveComponentType = function () { return this._resolvedComponent; };
14 return SyncRouteHandler;
15}());
16exports.SyncRouteHandler = SyncRouteHandler;
17//# sourceMappingURL=sync_route_handler.js.map
\No newline at end of file