Skip to content

Instantly share code, notes, and snippets.

@BinaryGeometry
Created February 25, 2014 18:13
Show Gist options
  • Select an option

  • Save BinaryGeometry/9214529 to your computer and use it in GitHub Desktop.

Select an option

Save BinaryGeometry/9214529 to your computer and use it in GitHub Desktop.
Firing Function on Ember Change Event
<input type="checkbox" {{action "foo" on="change"}}>
App.MenusController = Ember.ObjectController.extend({
// initial value
isExpanded: false,
actions: {
foo: function() {
alert('works');
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment