Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

angularjs ng-options name value

angular.forEach($scope.banklist_list, function(value) {
            if(value.bank_id ==  $scope.pay_advance.bank_id){
                $scope.bank_name = value.bank_name;
            }
        });

//$scope.banklist_list =>is array  
//$scope.pay_advance.bank_id=> ng-model
 
PREVIOUS NEXT
Tagged: #angularjs
ADD COMMENT
Topic
Name
1+6 =