knockout.js - How to know whether the observable update/change is from View or Manual update - knockoutjs -
is there way know whether ko observable updated/changed view action [click, select, focus....] or observable updated manually.
for example,
<div data-bind="hasfocus: hasfocus" /> var vm = {hasfocus: ko.observable(true)}; ko.applybindings(vm); vm.hasfocus(false);
in this, how know hasfocus updated view or vm vm.hasfocus(false);
thanks in advance.
Comments
Post a Comment