title: Angular ng-model dynamic getters and setters
body: <p>I want to use ng-model with an external model-service. This model has two methods: getValue(variable) and setValue(variable).</p>
  
  <p>So in my html I want to be able to do:</p>
  
  <pre><code>&lt;input type="text" ng-model="balance"&gt;
  </code></pre>
  
  <blockquote>
    <p>Note: balance is not defined on $scope in my controller. And because we are dealing with more then 4000 different variables, I don't want to define them all on $scope.</p>
  </blockquote>
  
  <p>And then on change it must call the setValue() method of the model. So in my controller I would like to have something like:</p>
  
  <pre><code>$catchAllGetter = function(variable) { // e.g. variable = 'balance'
       var value = Model.getValue(variable);
       return value;
  }
  
  $catchAllSetter = function(variable, value) { // called on change
       Model.setValue(variable, value);
  }
  </code></pre>
  
  <p>Is something like this possible with Angular?</p>