【问题标题】:Search functionality within an AngularJs WebsiteAngularJs 网站中的搜索功能
【发布时间】:2018-04-24 05:56:39
【问题描述】:

如何实现一个搜索栏来搜索我网站内的内容?我的网站是用 AngularJs 编写的。

【问题讨论】:

    标签: angularjs search web web-crawler


    【解决方案1】:

    希望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 来实现这个角度实现。

    【讨论】:

      猜你喜欢
      • 2016-10-29
      • 2014-08-25
      • 1970-01-01
      • 2010-11-18
      • 1970-01-01
      • 2017-12-13
      • 2010-12-04
      • 1970-01-01
      • 2021-04-22
      相关资源
      最近更新 更多