Skip to content

Call DataBind Manually

Hai Phan edited this page Jul 31, 2015 · 1 revision

By default the dataBinder auto-binds the entire document as soon as it is ready, by calling:

dataBinder.dataBind(document.body, window);

You can disable auto-binding with dataBinder.autoBind = false and call dataBind manually:

dataBinder.dataBind(elem, context);

where context is the value of this in your binding expressions, and contains your data binding sources.

Clone this wiki locally