title: concatenate an ng repeat item as an object inside ng-model
body: <p>I'm trying to concatenate an <code>ng-repeat</code> item to ng-model object.  I was wondering if this possible.</p>
  
  <p>so for example:</p>
  
  <pre><code>//array
  $scope.array = [
   {
     param: 'color',
     ....
   },
   {
     param: 'weight',
     .....
   }
  ]
  </code></pre>
  
  <p>html</p>
  
  <pre><code>&lt;div ng-repeat="item in array"&gt;
    {{ item.param }}
  
     &lt;input type="text" ng-model="form.name.{{ item.param }}" &gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>so lets say <code>{{ item.param }}</code> is <code>color</code>, the <code>ng-model</code> will be <code>form.name.color</code>.</p>
  
  <p>form object will be something like this:</p>
  
  <pre><code>{
  
    name: {
     color: 'value of input',
     weight: 'value of input'
    }
  
  }
  </code></pre>
  
  <p>How can I concatenate the item.param to the object form.name?  I've been trying so many ways but no results.  I trying to use <code>$index</code>, but don't know where to begin.</p>
  
  <p>Your help will be appreciated!</p>