ng2-ui / auto-complete

Angular Auto Complete component and directive
https://ng2-ui.github.io/dist/#/auto-complete
MIT License
279 stars 123 forks source link

How to set already saved value to auto-complete? #274

Closed RawatPraveen closed 7 years ago

RawatPraveen commented 7 years ago

I have implemented this control and using this i have saved some details. Now problem is how do i set back when user comes to edit a record. In this case whatever user have saved should be selected by default.

I have gone through documents but did not find any doc or link in which it is shown how to set a data back or what should be the best practice to save a data or set already saved data.

I haven't created any plunk before and this is my first plunk. Its not working at the moment but by going through it you will understand what i want to say.

plunk

allenhwkim commented 7 years ago

@RawatPraveen there is no such option to select or add your pre-selected values. You can make use of Observer source by manually handling it. from README.md image