title: AngularJS: ng-model inside ng-repeat?
body: <p>I'm trying to generate form inputs with ng-repeat.
  Note: 'customFields' is an array of field names: ["Age", "Weight", "Ethnicity"].</p>
  
  <pre><code> &lt;div class="control-group" ng-repeat="field in customFields"&gt;
     &lt;label class="control-label"&gt;{{field}}&lt;/label&gt;
       &lt;div class="controls"&gt;
         &lt;input type="text" ng-model="person.customfields.{{field}}" /&gt;
       &lt;/div&gt;
   &lt;/div&gt;
  </code></pre>
  
  <p>What is the best/correct way to set 'ng-model'? I would like to send it to the server as <strong>person.customfields.'fieldname'</strong> where fieldname comes from 'field in customFields'.</p>