minimal working version of user preview
This commit is contained in:
+3
-2
@@ -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());
|
||||
}
|
||||
Reference in New Issue
Block a user