32
rated 0 times
[
39]
[
7]
/ answers: 1 / hits: 17321
/ 11 Years ago, tue, february 4, 2014, 12:00:00
Hi I have following input
<input type=text class=form-controlb ng-model=item.name id=name placeholder=Enter Name /
>
And following dropdown
<div class=col-sm-12 ng-model=query>
<select ng-model=item class=form-control ng-options=a.name for a in addemployees | filter:name | orderBy:'name' value={{a.name}}>
<option value=>[Select Employee..]</option>
</select>
</div>
Basically what I am trying to do is, when I enter name in the input box if dropdown has that name ints options to show it in dropdown.
I tried to do do filter by name and than orderby name but it doesnt show any on dropdown as selection.
Please let me know how to fix it.
Thanks
More From » angularjs