<observable>.subscribe(<function(value)>) When the value of observable changes, execute the callback function on the new value.

<observable>.valueHasMutated() Force the observable to notify its subscribers that it has changed.

Facts, Thoughts and Opinions

When to use ko.utils.unwrapObservable

You should use ko.utils.unwrapObservable in cases where you don't know if you have been given an observable or not. This would commonly be in a custom binding where an observable or non-observable could be bound against it.


  •   Subtopics

  •   Writings

  Sources & Bookmarks

Name/Link Date