Skip to content

Instantly share code, notes, and snippets.

@zeppelin
Created January 24, 2013 10:35
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 zeppelin/4619780 to your computer and use it in GitHub Desktop.
Save zeppelin/4619780 to your computer and use it in GitHub Desktop.
MyRoute = Ember.Route.extend({
events: {
doSomething: function() {
console.log('Yes sir!');
}
}
});
// If your controller already has a method named `doSomething`,
// it'll take precedence over the router's event, as the controller
// is now the default target.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment