Sign up ×
Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them, it only takes a minute:

I want something like Google search matches. When I type something Google gives me some options which match the words I have typed so far; for example if I type "Rog" it gives me the options of "Rogers", "Rogers Yahoo", "Rogers email", "Rogers Centre" and these suggestions are part of the input box not a separate "list" or.... I know this one is possible with angular. I appreciate it if you can guide me :-)

PS: Sorry I was not able to attach a picture(example of Google search) to clarify! Thanks

share|improve this question

1 Answer 1

up vote 4 down vote accepted

There are two resources available from Angular UI that can get you started:

From Angular Bootstrap, there's Typeahead. This is a fairly lightweight solution with no other external dependencies. It's also very simple, in that it just provides a simple suggestion list below the input.

The alternative is UI Select2. This is a much more complex version, with many more features. However, it does have dependencies on both the jQuery and Select2 libraries.

share|improve this answer
    
Thanks that's great; and do you know for Typehead, in the javascript part how I can pass "$scope.states" values with a web service result? – Shima Mdz Jul 10 '13 at 3:25
    
The typeahead link is dead, use this one instead: angular-ui.github.io/bootstrap/#/typeahead – ryan knell May 28 '14 at 6:26

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.