title: Angular dynamic model as array
body: <p>I have following snippet of code and don't know how it should be organized to work properly. There is no documentation in official angular site but probably anybody know how handle it. Also I googled but it seams that there is no straightforward solution.</p>
  
  <p>I have parameters array and each parameter is unique but has a parameter.name and possible items. Each parameter describe a Combo box. So I have a set of combo boxes and I have to collect all selected items in map associated array. </p>
  
  <p>Example of input (just example, exact list of params I got from service):</p>
  
  <pre><code>      {{"route": ["1", "2", "3", "4"]},
         {"price": ["100", "200", 300"]},
         {"count": ["100", "200", 300"]}
  </code></pre>
  
  <p>It should be like this:</p>
  
  <pre><code> &lt;div ng-repeat="parameter in parameters"&gt;
     &lt;select name="select-1" ng-model="selected_params[parameter.type] }}"&gt;
        &lt;option&gt;
     &lt;/select&gt;
   &lt;/div&gt;
   Dynamic Result: {{ selected_params }}
  </code></pre>
  
  <p>And for example user put second and third check-box in second value and I got the response</p>
  
  <pre><code>  {"price" : "200", "count" : "200"}
  </code></pre>