View

View

A wrapper around an HTML element that can re-render the element's contents based on its state.

Members

destroy :Promise.<void>

Cleans up the state and removes the HTML element from the DOM.

Type:
  • Promise.<void>

render :Promise.<HTMLElement>

Updates the contents of the HTML element based on the current view state, then returns the element.

Type:
  • Promise.<HTMLElement>