title: Knockout.JS Observable Array Changes to Individual Observable Items
body: <p>I have a view model with an <code>observableArray</code> (named 'all') of objects. One of the properties of that object is an <code>observable</code> name selected. I want some code to execute whenever the selected property of the of the child object in the array changes. I tried manually subscribing to <code>all</code> via <code>all.subscribe()</code> but that code only fires when items are added or removed. I updated the code to do it like this:</p>
  
  <pre><code>all.subscribe(function () {
      ko.utils.arrayForEach(all(), function (item) {
          item.selected.subscribe(function () {
              //code to fire when selected changes
          });
      });
  });
  </code></pre>
  
  <p>Is this the right way to do this or is there a better way?</p>