Using Bootstrap typeahead with Angular

前端 未结 7 1172
生来不讨喜
生来不讨喜 2020-12-23 22:35

I am currently developing a web application which uses twitter-bootstrap and Angularjs in good harmony. However, I have problems with the typeahead and using it as a ng-mode

7条回答
  •  盖世英雄少女心
    2020-12-23 22:45

    I would suggest checking out the typeahead directive from the AngularUI/boostrap repository: http://angular-ui.github.com/bootstrap/

    It is native implementation in pure AngularJS so it doesn't require any 3rd party dependencies. On top of this it is very well integrated with the AngularJS ecosystem as it: * uses concise syntax known from the select directive * understands AngularJS promises so results can be fetched dynamically using $http with the minimal effort.

提交回复
热议问题