App constructor

App(
  1. AppContext ctx,
  2. 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');
}