Typeahead: Selecting object instead of string
http://plnkr.co/edit/Auv8lrRt6buVD5SBqXrr?p=preview
Observe console errors when selecting an option.
Same error as in this issue: https://github.com/mgcrea/angular-strap/issues/762
Need to be able to assign a non-string to the model. If you double click on a result, it seems to load the object into the model, but with errors, and ...having to double click :P
You can avoid this error by providing a label property with the string you want to see in the input. This works for 2.0.2, your plunkr was using 2.0.0 (seems like it's not updated in the /dist that was there).
Here's it in action: http://plnkr.co/edit/bRRYgn874KwlnFIqZeor?p=preview
Great. Thanks!
Do the docs currently mention the label property anywhere? If not, I think they should.
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.