mgcrea/angular-strap — pull request #1111 by ruifortes (2014-09-29 12:22:59+00:00)
Title: refactor(typeahead): better updating and selectMode

change updating mecanism from model watcher to parser
this provide better control of whats actually gets to model
"selectMode" uses options "value" attribute and changes model only upon valid selection
When not in "selectMode" model value is synchronized with input string and upon selection changes to options "label" attribute
"formater" to update viewValue use new "$parseOptions.parseViewValue" method

matches are only updated on input change (via parser) so simply focusing a prestine control would just create an empty list