i have a table with dropdown and other controls
am adding new row on drop down change using angular js
| Customer | Pendings | Pending Value |
|---|---|---|
{{ReceiptsViewModel.PendingAmount}} |
angular code to add new row
var ReceiptsApp = angular.module('ReceiptsApp', []);
ReceiptsApp.controller('ReceiptsController', function ($scope) {
$scope.rvm = [{}];
$scope.GetAccountBalance = function () {
$scope.rvm.push({
});
}
});
but my requirement is,
if i select dropdown am adding new row that is fine,
but am changing value first dropdown again,it is adding one more row.
but i want like if i select first dropdown add row, then add new row on selecting dropdown in second row
now dont add rows on change of first and 2nd row dropdown

Midhun TpRank #388 · 6.5K reputationPosted Sep 17, 2016, 2:58 AM EDT
Akash VarshneyRank #1,895 · 780 reputationPosted Sep 16, 2016, 9:35 PM EDT
suman goud159 reputationPosted Sep 17, 2016, 1:18 AM EDT
suman goud159 reputationPosted Sep 17, 2016, 3:19 AM EDT
suman goud159 reputationPosted Sep 17, 2016, 3:54 AM EDT
(how to insert multiple table rows data in database
Midhun TpRank #388 · 6.5K reputationPosted Sep 17, 2016, 6:29 AM EDT