Skip to content

Instantly share code, notes, and snippets.

@foxdonut
Created December 15, 2014 18:34
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 foxdonut/d71c17cd8a22bf08cb02 to your computer and use it in GitHub Desktop.
Save foxdonut/d71c17cd8a22bf08cb02 to your computer and use it in GitHub Desktop.
define({
$plugins: [
{ module: "wire/dom" },
{ module: "wire/on" }
],
model: { module: "app/model" },
getMenuOptions: { module: "app/get-menu-options" },
mealSelect: { $ref: "dom!meal-select" },
menuSelect: { $ref: "dom!menu-select" },
getSelectedValue: { module: "app/get-selected-value" },
rivets: {
module: "rivets",
ready: {
bind: [
{ $ref: "menuSelect" },
{ $ref: "model" }
]
},
on: {
mealSelect: { "change:select": "getSelectedValue | getMenuOptions | model.update" }
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment