如何实现搜索栏以搜索我网站内的内容?我的网站是用AngularJs编写的。
答案 0 :(得分:0)
我希望this plunkr will help you to get some head start
<input type="text"
ng-model="customSelected" placeholder="Custom template"
uib-typeahead="state as state.name for state in statesWithFlags | filter:{name:$viewValue}"
typeahead-template-url="customTemplate.html"
class="form-control"
typeahead-show-hint="true"
typeahead-min-length="0">
我已将ui-bootstrap-tpls-2.5.0.js
用于此角度实现。