Skip to content
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
@blowsie

Description

@blowsie

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions