@@ -11,7 +11,7 @@ <h3>Using value for binding</h3>
1111 < p > Selected: < code > {{ctrl.person.selectedValue}}</ code > </ p >
1212 < ui-select ng-model ="ctrl.person.selectedValue " theme ="select2 " ng-disabled ="ctrl.disabled " style ="min-width: 300px; " title ="Choose a person ">
1313 < ui-select-match placeholder ="Select a person in the list or search his name/age... "> {{$select.selected.value.name}}</ ui-select-match >
14- < ui-select-choices repeat ="person.value as (key, person) in ctrl.peopleObj | filter: {' value': $select.search} ">
14+ < ui-select-choices repeat ="person.value as (key, person) in ctrl.peopleObj | filter: { value : { name: $select.search } } ">
1515 < div ng-bind-html ="person.value.name | highlight: $select.search "> </ div >
1616 < small >
1717 email: {{person.value.email}}
@@ -24,7 +24,7 @@ <h3>Using single property for binding</h3>
2424 < p > Selected: < code > {{ctrl.person.selectedSingle}}</ code > </ p >
2525 < ui-select ng-model ="ctrl.person.selectedSingle " theme ="select2 " ng-disabled ="ctrl.disabled " style ="min-width: 300px; " title ="Choose a person ">
2626 < ui-select-match placeholder ="Select a person in the list or search his name/age... "> {{$select.selected.value.name}}</ ui-select-match >
27- < ui-select-choices repeat ="person.value.name as (key, person) in ctrl.peopleObj | filter: {' value': $select.search} ">
27+ < ui-select-choices repeat ="person.value.name as (key, person) in ctrl.peopleObj | filter: { value : { name: $select.search } } ">
2828 < div ng-bind-html ="person.value.name | highlight: $select.search "> </ div >
2929 < small >
3030 email: {{person.value.email}}
@@ -37,7 +37,7 @@ <h3>Using key for binding</h3>
3737 < p > Selected: < code > {{ctrl.person.selectedSingleKey}}</ code > </ p >
3838 < ui-select ng-model ="ctrl.person.selectedSingleKey " theme ="select2 " ng-disabled ="ctrl.disabled " style ="min-width: 300px; " title ="Choose a person ">
3939 < ui-select-match placeholder ="Select a person in the list or search his name/age... "> {{$select.selected.value.name}}</ ui-select-match >
40- < ui-select-choices repeat ="person.key as (key, person) in ctrl.peopleObj | filter: {' value': $select.search} ">
40+ < ui-select-choices repeat ="person.key as (key, person) in ctrl.peopleObj | filter: { value : { name: $select.search } } ">
4141 < div ng-bind-html ="person.value.name | highlight: $select.search "> </ div >
4242 < small >
4343 email: {{person.value.email}}
0 commit comments