I have a code of SELECT element like this
select(ng-model="chosenProject" id="chosenProject" ng-options="c.name for c in selectItems")
where selectItems are arrays of objects, and each object got name and value fields. Later in chosenProject.value I read an object (with value and name fields) of chosen item.
Now I also need to pre-select some element based on its value. If I do $scope.chosenProject.value=*somevaluenumber*, $scope.chosenProject.value.value =*somevaluenumber* it does not seem to work.
I can not change the declaration; chosenProject gets the whole object of selected item and that's what I use later in code.