【发布时间】:2016-05-17 06:22:41
【问题描述】:
有没有人知道一种方法来检查是否没有结果与输入匹配。或者至少,我可以访问结果数组吗?提前致谢!
【问题讨论】:
标签: angularjs angular-ui-bootstrap angular-ui-typeahead
有没有人知道一种方法来检查是否没有结果与输入匹配。或者至少,我可以访问结果数组吗?提前致谢!
【问题讨论】:
标签: angularjs angular-ui-bootstrap angular-ui-typeahead
将typeahead-no-results="noResults" 添加到您的输入中
并将其放在输入下方。
<i ng-show="loadingLocations" class="glyphicon glyphicon-refresh"></i>
<div ng-show="noResults">
<i class="glyphicon glyphicon-remove"></i> No Results Found
</div>
【讨论】: