Hey,
I use ui.bootstrap.typeahead. On select a suggestion it put the hole data
array in the model - I need only the filtered element.
<input name="name" ng-model="order.name" type= "text" class= "form-control"
placeholder="name" uib-typeahead="a as a.name for a in customer |
filter:$viewValue | limitTo:10 | unique:'name'" uib-typeahead-min-length='1'
uib-typeahead-on-select='onSelectPart($item, $model, $label)'
uib-typeahead-template-url="customTemplate.html" required/>
Actually, he puts in customer.name the hole matching database set: (name =
{id:2; name:Fritz; adress:Road;....})
Help?!
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.