I have a text box that uses the AngularUI typeahead function . It looks like this:
<input typeahead="eye for eye in autocomplete[column] | filter:$viewValue">
I would like to get the user to select an option from the generated list. If they type in something that is not indicated in the list exactly as it appears when blurring (clicking outside the text field), I would like the value of the text field to be reset to its original value.
Is this functional part part of the typeahead directive, or do I need to extend it? I searched for about 10 minutes on google and stackoverflow, but could not find the relevant documentation.
Can someone point me in the right direction to accomplish this?
angularjs twitter-bootstrap angular-ui angular-ui-bootstrap angular-ui-typeahead
Josue espinosa
source share