Knockout: Unable To Process Binding
I asked this question earlier but did not get an answer. I get this error message when I run my code: Uncaught ReferenceError: Unable to process binding 'visible: function (){retu
Solution 1:
I made it something from your code now toggle is working fine .
please find this Working Fiddle
View :
<inputtype="button"
data-bind="click: editComment, value:editable() ? 'Save' : 'Edit comment'" />
View Model:
$(document).ready(function() {
vm = functionViewModel() {
varself = this;
self.comments = ko.observableArray();
functionComment() {
varself=this;
self.editable = ko.observable(false);
self.editComment = function() {
self.editable(!self.editable());
};
}
self.comments.push(new Comment());
};
ko.applyBindings(new vm);
});
If issue still exists please make use of above fiddle and try to build your code in it let me know .
Post a Comment for "Knockout: Unable To Process Binding"