Skip to content
This repository has been archived by the owner on Oct 2, 2019. It is now read-only.

Dynamically initialize the multi-select options #587

Open
ShaneZhengNZ opened this issue Jan 14, 2015 · 3 comments
Open

Dynamically initialize the multi-select options #587

ShaneZhengNZ opened this issue Jan 14, 2015 · 3 comments

Comments

@ShaneZhengNZ
Copy link

Look at the multi-select demo examples, all the them have the select options initialised.

In my case, I want to load the HTML and then call the http service to initialise the selection options, which gives me the $select.selected is undefined error.

To workaround that problem, I have to manually initialize the option to an empty array, then get the http service to load the data.

Example in plunker - http://plnkr.co/edit/F0jCYug8MQuV1tXU4jlX?p=preview
For the example, in the script.js file, if you comment out link 45, the multi-select won't work.

My request is whether ui-select should initialise the options to an empty array automatically in the case of multi-select, so we don't need to manually do that.

@Flightfreak
Copy link

Is it not related to this issue? #404 Fix might be soon available. #256

@jukkasi
Copy link

jukkasi commented Jan 31, 2015

+1 I don't think #256 will fix this

@raimund-schluessler
Copy link

I have the same problem with the https://github.com/owncloud/tasks app for owncloud:
https://github.com/owncloud/tasks/blob/c9885510f491423bbc3d6e6aa0f79b414d6686e4/js/app/controllers/detailscontroller.coffee#L53-L58

Would be great if this could be resolved. Thanks for your work anyway!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants