title: Getting values of multiple select inside one ng-repeat
body: <p>I have a dropdown in one of my div, from which I am selecting the number of dropdowns to be in second div. My task is to be able to select the different values from each of the dropdowns inside the second div. Here is the code I am trying</p>
  
  <pre><code>&lt;div ng-repeat="i in getNumber(secondN2.core.r1r2.value) track by $index"&gt;
                  &lt;div&gt;
                      &lt;strong&gt;&lt;u&gt;For Core link number {{$index+1}}:&lt;/u&gt; &lt;/strong&gt;&lt;br&gt;
                          &lt;strong&gt;Select IM&lt;/strong&gt;
                          &lt;select ng-model="im" ng-change="calculate()" &gt;
                              &lt;option value="1 Gig" selected="selected"&gt;1 Gig&lt;/option&gt;
                              &lt;option value="10 Gig"&gt;10 Gig&lt;/option&gt;
                          &lt;/select&gt;&lt;br&gt;
  
                  &lt;/div&gt;
  
  &lt;/div&gt;
  </code></pre>
  
  <p><code>secondN2.core.r1r2.value</code> is a number, I am converting it to array,a collection, by returning new Array(n), in the <code>getNumber</code> method</p>
  
  <p>How to give the proper <strong>ng-model</strong> in this case? And how to retrieve the values?</p>
  
  <p>If I try to give <code>i.im</code>, it still does not help. With <code>im</code>, <code>$scope.im</code> is coming <code>undefined</code></p>
  
  <p><strong>Updated</strong></p>
  
  <p>What is two nested loops are there</p>
  
  <pre><code>&lt;div ng-repeat="j in secondN3.core" style="border:1px solid;"&gt;
      &lt;strong&gt;Configure Core Links between {{j.name}}&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
              &lt;div ng-repeat="i in getNumber(j.value) track by $index"&gt;
              &lt;div&gt;
                  &lt;strong&gt;&lt;u&gt;For Core link number {{$index+1}}:&lt;/u&gt; &lt;/strong&gt;&lt;br&gt;
                  &lt;strong&gt;Select IM&lt;/strong&gt;
                  &lt;select ng-model="secondN3.coreValues[[$parent.$index,$index]]" ng-change="calculate()" &gt;
                      &lt;option value="1 Gig" selected="selected"&gt;1 Gig&lt;/option&gt;
                      &lt;option value="10 Gig"&gt;10 Gig&lt;/option&gt;
                  &lt;/select&gt;&lt;br&gt;
              &lt;/div&gt;
          &lt;/div&gt;
  &lt;div&gt;
  </code></pre>
  
  <p><strong>Edit:2</strong></p>
  
  <p>This is working: <a href="http://plnkr.co/edit/byzgk2zR5dnlyAEMLhjh?p=preview" rel="noreferrer">This</a> is the plunker for that</p>