Hi everyone,
I can’t seem to get the select control working properly for some strange reason. This is what I do:
$scope.searchStaticBilled = [
{
name: 'All'
},
{
name: 'Unbilled'
},
{
name: 'Billed'
}
];
$scope.searchData = {
title: '',
billed: $scope.searchStaticBilled[0]
};
Then in the template:
<select ng-model="searchData.billed" ng-options="billedStatic.name for billedStatic in searchStaticBilled"></select>
The select does not preselect the first option, and just selects nothing instead. Am I missing something?
Michael