【发布时间】:2015-06-22 19:55:19
【问题描述】:
我使用来自引导 Angular JS 的 typeahead-on-select。
现在我已经编写了 HTML 代码:
<input type="text" ng-model="data.country[formData.country]" placeholder="Select country..." typeahead-on-select="onSelect($item, $model, $label)" typeahead="stuff as stuff.name for stuff in countries | filter:{name: $viewValue} | orderBy:stuff.name" aria-expanded="false" aria-owns="typeahead-16-5649">
当我在此输入上输入符号 a 时,我会得到自动完成未排序的结果,而国家/地区则没有从此符号命名。我做错了什么?
【问题讨论】:
标签: angularjs bootstrap-typeahead angular-ui-typeahead