@web-atoms/core
Version:
35 lines (34 loc) • 1.3 kB
JavaScript
System.register(["tslib", "../../../services/NavigationService", "../../controls/AtomTabbedPage", "../../WebApp"], function (_export, _context) {
"use strict";
var __awaiter, NavigationService, AtomTabbedPage, WebApp, TabApp;
_export("TabApp", void 0);
return {
setters: [function (_tslib) {
__awaiter = _tslib.__awaiter;
}, function (_servicesNavigationService) {
NavigationService = _servicesNavigationService.NavigationService;
}, function (_controlsAtomTabbedPage) {
AtomTabbedPage = _controlsAtomTabbedPage.AtomTabbedPage;
}, function (_WebApp) {
WebApp = _WebApp.default;
}],
execute: function () {
_export("TabApp", TabApp = class TabApp extends WebApp {
main() {
const page = new AtomTabbedPage(this);
this.root = page;
setTimeout(() => __awaiter(this, void 0, void 0, function* () {
const nav = this.resolve(NavigationService);
yield nav.openPage("web-atoms-core/dist/web/samples/tabs/views/Page1", {
message: "Page 1"
});
yield nav.openPage("web-atoms-core/dist/web/samples/tabs/views/Page1", {
message: "Page 2"
});
}), 1000);
}
});
}
};
});
//# sourceMappingURL=app.js.map