javascript - Uncaught Error: Unable to parse bindings -
uncaught error: unable parse bindings. message: referenceerror: value not defined; bindings value: text: value.
here's code
ko.applybindings(new appviewmodel(myobject.storerows),document.getelementbyid("addnewupdateform")); $("#abc").live('click',function() { $.ajax({ url: "request.json", //get method used type: "post", //pass data data: data, datatype: 'json', success : function(response) { function viewmodelsku() { self = this; this.skudata = skudata; } var skudata = response.rows; ko.applybindings(viewmodelsku(), document.getelementbyid("row")); } }); }
the error in view. binding value
whereas apparently property not exist in viewmodelsku. perhaps want bind skudata.value
inside view (if property on skudata)
Comments
Post a Comment