model String | ObservableObject(default: null)

The MVVM model to bind to. If a string is passed, The view will try to resolve a reference to the view model variable in the global scope.


<div data-role="view" data-model="foo">
   <span data-bind="text:bar"></span>

var foo = { bar: "baz" }
In this article
Not finding the help you need? Improve this article