Skip to content
This repository was archived by the owner on Mar 13, 2018. It is now read-only.
This repository was archived by the owner on Mar 13, 2018. It is now read-only.

Consider allowing select.value & option.value bound value to be object-valued #1

Description

@rafaelw

The idea here is that it's often useful to have a selector whose value is a domain object.

IOW

model = {
  users: [{ name: 'Bob', id: 1}, { name: 'Sally', id: 2}];
  selected: undefined
}
<select value={{ selected }}>
  <option template repeat="{{ user in users }}" value="{{ user }}">{{ user.name }}</option>
</select>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions