Skip to content

Instantly share code, notes, and snippets.

@jgwhite
Forked from ef4/select.hbs
Last active August 29, 2015 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jgwhite/980c49f1d5675f8cef1b to your computer and use it in GitHub Desktop.
Save jgwhite/980c49f1d5675f8cef1b to your computer and use it in GitHub Desktop.
<select onchange={{action "someAction" "firstArg" (pluck-attr "value") path.to.third.arg}}>
{{#each vehicles key="@item" as |vehicleChoice|}}
<option value={{vehicleChoice}} selected={{eq vehicle vehicleChoice}}>{{vehicleChoice}}</option>
{{/each}}
</select>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment