Ng-options angularjs
<select ng-options="item.subItem as item.label for item in items track by item.id" ng-model="selected"></select>
Ugly Unicorn
<select ng-options="item.subItem as item.label for item in items track by item.id" ng-model="selected"></select>
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