minimal working version of user preview

This commit is contained in:
Bruno Windels
2020-11-30 10:57:39 +01:00
parent ead94695f1
commit 4d15ce40c1
8 changed files with 93 additions and 16 deletions
+3 -2
View File
@@ -1,10 +1,11 @@
import {xhrRequest} from "./utils/xhr.js";
import {RootViewModel} from "./RootViewModel.js";
import {RootView} from "./RootView.js";
export async function main(container) {
const vm = new RootViewModel(xhrRequest, location.hash);
vm.load();
window.__rootvm = vm;
// const view = new RootView(vm);
// container.appendChild(view.mount());
const view = new RootView(vm);
container.appendChild(view.mount());
}