Siyfion/angular-typeahead

[object Object] in new v0.1.1

simon-jouet opened this issue · 2 comments

Hi,

same as 3 month ago in #17 and #15 if the model is set the value displayed will be [object Object] I made a plunkr here http://plnkr.co/edit/rtyGVJoWgKHhFobJceZ3?p=preview

It's the same one as the one given as an example but $scope.selectedNumber = { num: 'one' };

Any ideas ?

Thanks,
Simon

Yup, I know exactly why and it was warned in the changelog file.

As an aside, you may well set the value locally, but if you are using a remote source, how is this directive supposed to get the data associated with the key you specify from the source?

For additional details, see here: angular-ui/bootstrap#274
And this is for a typeahead control that is completely written for angular, so this, which simply wraps Twitter's version doesn't have much of a chance!