title: Dynamically assign ng-model
body: <p>I'm trying to generate a set of check-boxes from an object array. I'm aiming to have the check-boxes dynamically map their ng-model to a property of the new object that will be submitted into the array.</p>
  
  <p>What I had in mind is something like</p>
  
  <pre><code>&lt;li ng-repeat="item in items"&gt;
      &lt;label&gt;{{item.name}}&lt;/label&gt;
      &lt;input type="checkbox" ng-model="newObject.{{item.name}}"&gt;
  &lt;/li&gt;
  </code></pre>
  
  <p>This doesn't work as can be seen on this JSFiddle:</p>
  
  <p><a href="http://jsfiddle.net/GreenGeorge/NKjXB/2/" rel="noreferrer">http://jsfiddle.net/GreenGeorge/NKjXB/2/</a></p>
  
  <p>Can anybody help?</p>