UNPKG

tw-unity

Version:

javascript module for Unity Framework for Hybrid Application

16 lines 407 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class Router { constructor(pageManager) { this.pageManager = pageManager; this.routes = new Map(); } route(pageName, controller) { this.routes.set(pageName, controller); } goBack() { this.pageManager.goBack(); } } exports.default = Router; //# sourceMappingURL=router.js.map