2020-11-27 17:05:20 +01:00
|
|
|
import {xhrRequest} from "./utils/xhr.js";
|
2020-11-27 21:28:54 +01:00
|
|
|
import {RootViewModel} from "./RootViewModel.js";
|
2020-11-27 17:05:20 +01:00
|
|
|
|
2020-11-27 21:28:54 +01:00
|
|
|
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());
|
2020-11-27 17:05:20 +01:00
|
|
|
}
|