App constructor
App(
- AppContext ctx,
- HTMLElement root
Creates the app bound to the root element (#app).
Implementation
App(this.ctx, web.HTMLElement root) : _root = root {
_header = el('header', classes: 'app-header');
_main = el('main', classes: 'app-main');
mount(_root, el('div', children: [_header, _main]));
_root.setAttribute('aria-busy', 'false');
}