Hey there, I need some help with the code below:
<input type="text" class="form-controlb" ng-model="item.name" id="name" placeholder="Enter Name" /
>
Also, I have a dropdown as shown here:
<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>
I am trying to make it so that when I enter a name in the input box, if that name is in the dropdown options then it should show up as a selection. I have tried filtering by name and ordering by name, but nothing shows up in the dropdown. Can someone please advise on how to fix this issue? Thank you.