Knockout JS: How to subscribe to changes in code similar to how binding handlers work <p>Let's say there is a path in the view-model property which needs to be observed, like this:</p> <pre><code>&lt;div data-bind="myBindingHandler: { data1: prop1().prop2().prop3() }"&gt;&lt;/div&gt; </code></pre> <p>This is easy to do in HTML with <code>data-bind</code> and binding handler, but doing this manually in JS code with <code>.subscribe()</code> is tedious.</p> <p>Is there a way in KO to be able to somehow give the same string and listen to changes? I imagine it would be something like this:</p> <pre><code>viewModelInstance.prop1.observe("prop2().prop3()", function (newValue) { console.log('prop3 value is", newValue); }); </code></pre> <p>I'm pretty sure somewhere in the KO implementation it's possible, but I wonder if it's really exposed. </p>