Skip to content

Instantly share code, notes, and snippets.

@sgharms
Created July 6, 2012 21:17
Show Gist options
  • Save sgharms/3062798 to your computer and use it in GitHub Desktop.
Save sgharms/3062798 to your computer and use it in GitHub Desktop.
heroes: Ember.Route.extend({
route: '/heroes',
index: Ember.Route.extend({
route: '/',
enter: function( router ){
console.log("Someone entered /heroes");
},
connectOutlets: function(router){
router.get('heroesController').connectOutlet('heroes');
}
}),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment