This repository was archived by the owner on Oct 2, 2019. It is now read-only.
This repository was archived by the owner on Oct 2, 2019. It is now read-only.
Using objects in <ui-select-choices repeat=""> #971
Closed
Description
Forgive me if this has already been asked, I couldn't find a ticket for it.
I'm migrating from ui-select2, which allowed me to use objects as my data for example:
var data = {
'Adam': {
age: 10,
location: 'UK'
}
}
HTML
<select data-ng-options="value as key for (key, value) in data">
How can I use an object as my data in ui-select?
I tried data-repeat="name in data"
but got [ui.select:items] Expected an array but got {"Adam"...
Metadata
Metadata
Assignees
Labels
No labels