Typeahead with objects without label property
Hi,
I have a problem with the source array of a typeahead. If the elements don't have a "label" property, after selecting a match the input becomes empty. Isn't it possible to use directly the label specified in ngOption? e.g. state.Name is the label of ng-options="state as state.Name for state in getState($viewValue, statesWoLabels)" Same problem when the model already has a selected value without a label property.
Also it will be very helpful if the documentation will include examples of how to use complex objects in typeaheads because I struggled a lot to find how to obtain the desired behavior (like in the following plunker).
And here's the plunker: http://plnkr.co/edit/maueceKX47Mu5RhfpIF5
Thanks!
+1
+1
+1
+1
+1
+1
Typeahead uses the ng-options, so something else is going on.
It should be fixed with #1261 and version v2.1.4
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.