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

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -