mount function

void mount(
  1. Element parent,
  2. Node child
)

Replaces the entire content of parent with child.

Implementation

void mount(web.Element parent, web.Node child) {
  clearChildren(parent);
  parent.appendChild(child);
}