Open bsatrom opened 13 years ago
When ViewModel properties match View element's by id or name, auto-generate data-bind attributes based on that information. For example:
var viewModel = { name: ko.observable(''); };
<input type="text" id="name" />
Should add data-bind="value: name" to the input element, inferring the binding type value based on the element type
data-bind="value: name"
value
When ViewModel properties match View element's by id or name, auto-generate data-bind attributes based on that information. For example:
Should add
data-bind="value: name"
to the input element, inferring the binding typevalue
based on the element type