Created
December 20, 2012 17:09
-
-
Save bobey/4346812 to your computer and use it in GitHub Desktop.
Route connectOutlet in root and index route
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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