This repository was archived by the owner on May 29, 2019. It is now read-only.
This repository was archived by the owner on May 29, 2019. It is now read-only.
Typeahead > When using an object field in the "as", it's not possible to set value programmatically #739
Closed
Description
I configure a typehead like this : "obj.id as obj.name for obj in objList" with "ng-model=selectedValue".
If I set selectedValue equals to an obj.id, the typehead didn't find the wanted obj. But if I set selectedValue equals to obj, it works.
If the user, select a item from the typehead, the selectedValue is the id and not the complete object. So I don't understand why I can't not set programmatically a value.
Example : http://plnkr.co/edit/iRR7cbIxrpjLpVywZ96u
Thanks,
Julien
Metadata
Metadata
Assignees
Labels
No labels