Hi, we are testing the AutoCompleteComponent and it is confusing.
When binding to array of complex data (objects) the auto complete does not emit the selected object but rather the value of the matching "valueField" property of the selected object which actually defeats the purpose of binding to array of objects.
Hi, we are testing the AutoCompleteComponent and it is confusing.
When binding to array of complex data (objects) the auto complete does not emit the selected object but rather the value of the matching "valueField" property of the selected object which actually defeats the purpose of binding to array of objects.
Plunker: http://plnkr.co/edit/ryLAkm0Ohwi1JvYOONR9?p=preview
The DropDownList works with array of objects as expected, it emits objects in the ngModel: http://plnkr.co/edit/0F3h1CoBzq8Qav2sTkvO?p=preview For reference the jQuery kendo autocomplete works as expected as well: http://demos.telerik.com/kendo-ui/autocomplete/mvvm