by using below code am adding new row on dropdown change,
if select option 'madhu' in dropdown ,adding new row with same selected madhu .if i select any dropdown madhu,all values are changing to madhu
how to fix this, iwant to add new empty row on dropdown change
js
$scope.rvm = [{}];
$scope.GetAccountBalance = function (index) {
var getAccountBalance = ReceiptsService.GetAccountBalance($scope.customer.ID);
var id = $scope.customer.ID;
alert(id);
if ($scope.rvm.length == (index + 1)) {
$scope.rvm.push({
});
}

Delpin Susai RajRank #53 · 29.5K reputationPosted Sep 20, 2016, 8:34 AM EDT
Delpin Susai RajRank #53 · 29.5K reputationPosted Sep 20, 2016, 8:34 AM EDT
Bikesh SrivastavaRank #108 · 20.3K reputationPosted Sep 20, 2016, 7:04 PM EDT