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 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
suman goudPosted Sep 19, 2016, 3:02 AM
Pradeep ShetPosted Sep 19, 2016, 2:53 AM
Akash VarshneyPosted Sep 19, 2016, 2:44 AM