How can input and appear automatically in the text which is matching on some sorts on history drop down list, which means autocomplete during input, I used class="dropdown-menu", it can just appear the input history, but it can not appear automatically during inputting like according to alphabetical sort? how can I use typeahead in my list example?
<div class="input-group-btn">
<input type="text" class="form-control dropdown-toggle" ng-model="search.searchboxinput" data-toggle="dropdown"
aria-haspopup="true" aria-expanded="false" placeholder="Enter search" style="width: 400px"/
<ul class="dropdown-menu">
<li ng-repeat="r in search.history">
<a href="#" ng-click="search.setHistory(r)">{{r}}</a>
</li>
</ul>
</div>