This repository was archived by the owner on Sep 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
including ng-model in md-autocomplete #2546
Copy link
Copy link
Closed
Labels
resolution: won't fixThere are no resources to fix this issue, the priority is too low, or it doesn't align w/ MD spec.There are no resources to fix this issue, the priority is too low, or it doesn't align w/ MD spec.
Description
Currently autocomplete uses md-selected-item for parameter initialization.
There are some issues with this, since you can f.e. add a random value/display object and it will show up, even if the item does not exist in the item list, as shown in this example. http://plnkr.co/edit/RkHGrqKXNfjINkuNKIrs?p=preview
I have been struggling the whole day simply to make two autocomplete elements exchange values when an item is selected, when it could be so much easier if I used ng-model. It feels unnecessarily complicated to initialize autocomplete with an object, instead of simply working as a select with the ng-model addressing the desirable value/display pair.
Metadata
Metadata
Assignees
Labels
resolution: won't fixThere are no resources to fix this issue, the priority is too low, or it doesn't align w/ MD spec.There are no resources to fix this issue, the priority is too low, or it doesn't align w/ MD spec.