Skip to content

Allow selection of entire item #128

@mcampster

Description

@mcampster

ui-select allows you to bind the entire item to ng-model. e.g. You have an array of countries:

[{name: "Australia", code: "AUS"}, {name: "United Kingdom", code: "UK"}]

You want to bind the selected country to your model - not so you have have either the name or the code, but the whole object so you may have

$scope.selectedCountry = {name: "United Kingdom", code: "UK"}

With the angular-schema-form-dynamic-select add on, you are forced to return your titleMap in name/value format. Whilst the map function allows you to pick a single property from each item to be your $$value$$, it would be nice to be able to select the whole item.

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