Skip to content Skip to sidebar Skip to footer

Knock Out Visible Binding Of Anchor Tag Is Not Working

I am using JavaScript module pattern in my application. Here is my html binding Copy

your "self.showDeleteLink" is no longer observable. You give it a new value, being the function.

I think what you are looking for is a computed value: http://knockoutjs.com/documentation/computedObservables.html

self.showDeleteLink = ko.computed(function() {
        return (textTemp.length > 500);
    });

Solution 2:

change The binding to data-bind="visible:master.child.showDeleteLink() now its working pretty fine


Post a Comment for "Knock Out Visible Binding Of Anchor Tag Is Not Working"