(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 });
    exports.SampleApp = void 0;
    const WebApp_1 = require("../../../web/WebApp");
    const MovieList_1 = require("./views/MovieList");
    const MovieListViewModel_1 = require("./views/MovieListViewModel");
    class SampleApp extends WebApp_1.default {
        main() {
            const ml = new MovieList_1.MovieList(this);
            ml.viewModel = this.get(MovieListViewModel_1.MovieListViewModel);
            document.body.appendChild(ml.element);
        }
    }
    exports.SampleApp = SampleApp;
    const app = new SampleApp();
});
//# sourceMappingURL=app.js.map