I have a listbox with several items, some of them starting with the same word.
Seems to me that if I try to use the ng-model to set the selected item using a value black the row isn't selected.
Seems to me the sample is correct.
Am I missing something?
$scope.colors = [
{name:'black', shade:'dark'},
{name:'black 2', shade:'dark'},
{name:'white', shade:'light'},
{name:'red', shade:'dark'},
{name:'blue', shade:'dark'},
{name:'yellow', shade:'light'}
];
$scope.myColor = 'black'; // red
I created here a repro