Angular strap is being used and the select element appears as shown below:
<button type="button" class="btn btn-default"
ng-model="selectedObject"
data-html="1"
bs-options="object.title for object in my_objects" bs-select>
Action <span class="caret"></span>
</button>
The array named my_objects:
$scope.my_objects = [
{title:'1'},
{title:'two'},
{title:'three'}
]
While using {{selectedObject}}
value in template, it displays correctly. However, when attempting to use this value within the Controller, $scope.selectedObject
appears empty. How can this issue be resolved? Thank you in advance.