UNPKG

adajs

Version:

Integrated Web Framework

26 lines (24 loc) 495 B
import {BondViewGroup, root} from "./../../index"; import state from "./state"; @root({ className: "test", template: "./template.html", style: "./style.css", dataset: { service: state } }) class Test extends BondViewGroup { oncreated() { import("./../module2").then(Test2 => { this.addChild(Test2.default, { container: this.getElement() }).then((test2) => { this.commit("change").then(() => { this.context.snapshot(); }); }); }); } } export default Test;