Issue
I having the issue when display the selected value in dropdown column.
code
$scope.projects = [{id : 10, project_name : 'A'}];
ng-option
'<select ng-model="item.project" name="project" ng-options="project as project.project_name for project in projects">'
I could able to show the selected value by using project.id as project.project_name......
However, I would like to submit a whole object including id
and project_name
after submit.
I will get id
value only if using project.id
which is not expected result.
Solution
Try:
project for project in projects
Answered By - Matstar
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.