문제

I am using angular js typeahead feature for a list of accounts in my application something like this.

typeahead="account for account in accounts | filter:$viewValue" .

I have all the accounts stored. The above feature works good. But I am trying to change this in such a way that when I just click the mouse on this input, it should display all the accounts. Can we achieve this feature?

도움이 되었습니까?

해결책

If you set minLength to 0 you should get all the results:

see: https://github.com/twitter/typeahead.js/pull/390

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top