Skip to content

Instantly share code, notes, and snippets.

@bobey
Created December 20, 2012 17:09
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 bobey/4346812 to your computer and use it in GitHub Desktop.
Save bobey/4346812 to your computer and use it in GitHub Desktop.
Route connectOutlet in root and index route
show: Em.Route.extend({
// ...
route: '/show/:schema_id',
connectOutlets: function(router, schema) {
router.get('configurationController').connectOutlet('right', 'schemaShow', schema);
},
index: Em.Route.extend({
route: '/',
// See if there is another way to do that
connectOutlets: function(router) {
router.get('configurationController').connectOutlet('right', 'schemaShow');
}
}),
// other routes
// ...
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment