UNPKG

web-atoms-core

Version:
43 lines 1.87 kB
var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); (function (factory) { if (typeof module === "object" && typeof module.exports === "object") { var v = factory(require, exports); if (v !== undefined) module.exports = v; } else if (typeof define === "function" && define.amd) { define(["require", "exports", "../../../web/WebApp", "./views/MovieList", "./views/MovieListViewModel"], factory); } })(function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var WebApp_1 = require("../../../web/WebApp"); var MovieList_1 = require("./views/MovieList"); var MovieListViewModel_1 = require("./views/MovieListViewModel"); var SampleApp = /** @class */ (function (_super) { __extends(SampleApp, _super); function SampleApp() { return _super !== null && _super.apply(this, arguments) || this; } SampleApp.prototype.main = function () { var ml = new MovieList_1.MovieList(this); ml.viewModel = this.get(MovieListViewModel_1.MovieListViewModel); document.body.appendChild(ml.element); }; return SampleApp; }(WebApp_1.default)); exports.SampleApp = SampleApp; var app = new SampleApp(); }); //# sourceMappingURL=app.js.map