Makes declarative binding possible. Allows to associate VT Form elements with model data. Based on http://knockoutjs.com.
Namespace
ko
Syntax
ko.applyBindings(model);
Where model is a view model. View model is an application’s stored data. This data represents objects and operations in your business domain.
Viewmodels
Defining viewmodel
Observables
Reading:
Writing:
Dependent properties
Available bindings
Binding | Description |
---|---|
click | |
disable | |
enable | |
list | |
value | |
visible |
Examples
The values of the bound form fields are set on objectLoaded