Skip to content

Instantly share code, notes, and snippets.

@ef4
Last active October 7, 2021 09:41
Show Gist options
  • Select an option

  • Save ef4/8367f996eb7b57d1f7a5 to your computer and use it in GitHub Desktop.

Select an option

Save ef4/8367f996eb7b57d1f7a5 to your computer and use it in GitHub Desktop.
Goodbye old Select View
<select onchange={{action (mut vehicle) value="target.value"}}>
{{#each vehicles key="@item" as |vehicleChoice|}}
<option value={{vehicleChoice}} selected={{eq vehicle vehicleChoice}}>{{vehicleChoice}}</option>
{{/each}}
</select>
@shayanypn

shayanypn commented Dec 14, 2016

Copy link
Copy Markdown

amazing job. Thank you.

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