by using this code am able to get dropdown id(if i comment ng-repeat)
js
$scope.GetAccountBalance = function (index) {
var getAccountBalance = ReceiptsService.GetAccountBalance($scope.ID);
var id = $scope.ID;
alert(id);
but my requirement is adding new row on dropdown change
js
$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);
am able to add new row by using this code , but am not getting selected id
how to selected dropdown id,
if i remove ng repeat am getting id ,
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsForums
Top experts
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Akash VarshneyRank #1,895 · 780 reputationPosted Sep 18, 2016, 10:44 PM EDT
Pradeep ShetRank #595 · 4K reputationPosted Sep 18, 2016, 10:53 PM EDT
suman goud159 reputationPosted Sep 18, 2016, 11:02 PM EDT