I\'d like to use a property on my ViewModel to toggle which icon to display without creating a separate computed property of the inverse. Is this possible?
It's little confusing, as you have to do
visible:!showMe()
so, i did
Show Hide toggle
my model is
var myModel={ showMe:ko.observable(true) } ko.applyBindings(myModel);
check in fiddle http://jsfiddle.net/khanSharp/bgdbm/