am adding table row on changing of dropdown,
JS
$scope.rvm = [{}];
$scope.GetAccountBalance = function (index) {
var getAccountBalance = ReceiptsService.GetAccountBalance($scope.ID);
var id = $scope.ID;
alert(id);
if ($scope.rvm.length == (index + 1)) {
$scope.rvm.push({
});
}
am able to add new row by using this code on dropdown change, but am not getting selected dropdown id(alert:undefined)
if i comment ng-repeat in tr , am getting id but not adding row
how to get id on ng-repeat


Akash VarshneyRank #1,895 · 780 reputationPosted Sep 19, 2016, 9:35 PM EDT
suman goud159 reputationPosted Sep 19, 2016, 9:42 PM EDT
Akash VarshneyRank #1,895 · 780 reputationPosted Sep 19, 2016, 9:52 PM EDT
Akash VarshneyRank #1,895 · 780 reputationPosted Sep 19, 2016, 10:22 PM EDT