Preselect simple value items appears, but their labels are missing
Currently uiSelectMultipleDirective, which is used if multiple is set, either uses the ngModel array (simple values), or the $parsed 'data' array for ngModel parsing / formatting (to/from view).
This means the 'data' array needs to be populated.
This is a problem if I have pre-existing (simple) values selected for ngModel. I don't want to populate the entire data array (e.g. if my data array is huge). I can't just populate the data array with the corresponding complex values, since I don't want the user to be able to select duplicates.
I think we need to add an attribute e.g. <ui-select dict='someDictionaryPromise'>, and add another conditional branch to lookup / parse value by dict?
created a PR: https://github.com/angular-ui/ui-select/pull/1193
this is not production ready code, feedback sought about the idea.
thanks
This might be a duplicate of #404
I think comment @sporkd https://github.com/sporkd hit nail on its head there.
+1