title: AngularJS : automatically detect change in model
body: <p>Suppose I wanted to do something like automatically run some code (like saving data to a server) whenever a model's values change. Is the only way to do this by setting something like <code>ng-change</code> on each control that could possibly alter the model?</p>
  
  <p>Ie, with views, things change right as the model is changed without having to explicitly hook anything up. Is there an analog to being able to run code that saves to a server? Something like</p>
  
  <pre><code>myModel.on('change', function() {
    $.post("/my-url", ...);
  });
  </code></pre>
  
  <p>like you might see with something like backbone.</p>