title: How to get dropdown selected id on ng-repeat in angular
body: <p>By using this code am I able to get dropdown id (If I comment <code>ng-repeat</code>)</p>
  
  <pre><code>&lt;tr @*ng-repeat="r in rvm"*@ @*&gt;
      &lt;td&gt;
          &lt;select ng-model="ID" ng-options="c.ID as c.Name for c in customer" ng-change="GetAccountBalance($index)" style="width:150px;height:22px;" name=" tCustomer"&gt;
              &lt;option value=""&gt;Select Customer&lt;/option&gt;
          &lt;/select&gt;
      &lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>javascript</p>
  
  <pre><code> $scope.GetAccountBalance = function (index) {
      var getAccountBalance = ReceiptsService.GetAccountBalance($scope.ID);
      var id = $scope.ID;
      alert(id);
   }
  </code></pre>
  
  <p>But my requirement is adding new row on dropdown change </p>
  
  <pre><code>&lt;tr ng-repeat="r in rvm"&gt;
      &lt;td&gt;
          &lt;select ng-model="ID" ng-options="c.ID as c.Name for c in customer" ng-change="GetAccountBalance($index)" style="width:150px;height:22px;" name=" tCustomer"&gt;
              &lt;option value=""&gt;Select Customer&lt;/option&gt;
          &lt;/select&gt;
      &lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>javascript</p>
  
  <pre><code>$scope.rvm = [{}];
  
  $scope.GetAccountBalance = function (index) {
      if ($scope.rvm.length == (index + 1)) {
          $scope.rvm.push({});
      }
  }
  var getAccountBalance = ReceiptsService.GetAccountBalance($scope.ID);
  var id = $scope.ID;
  alert(id);
  </code></pre>
  
  <p>Am I able to add new row by using this code , but I'm not getting selected id,
  how to selected dropdown id?
  If I remove <code>ng-repeat</code> I'm getting id , </p>