Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

including ng-model in md-autocomplete #2546

@loykianos

Description

@loykianos

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

No one assigned

    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.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions