Closed philipvr closed 12 years ago
I added enable/disable binders so that you can do this:
var Model = hd.model(function Model() { this.itemToAdd = hd.variable(""); // ... } var model = new Model; $(document).ready(function () { hd.bind(model); });
<form data-bind="submit: addItem"> New item: <input data-bind='btb: itemToAdd' /> <button type="submit" data-bind="enable: itemToAdd">Add</button> </form>
I added enable/disable binders so that you can do this: