Skip to content

Instantly share code, notes, and snippets.

@ctataryn
Created October 24, 2014 18:29
Show Gist options
  • Save ctataryn/d1b05a3bd0d21c381b5e to your computer and use it in GitHub Desktop.
Save ctataryn/d1b05a3bd0d21c381b5e to your computer and use it in GitHub Desktop.
Ember Event Bubbling
Router.map(function() {
this.route('workspace');
this.route('cart');
this.resource('file-details', {path: '/file-details/:folder_id'}, function() {
this.resource('file-contents', function() {
this.route('details', {path: '/:id'});
});
this.resource('file-search', {path:'search-and-order'}, function() {
// TODO: when filesearch is implemented you will need to add resources for 'titles' and
// 'instruments', which each contain routes for each of the search tabs
});
this.resource('file-share', {path: 'share-and-reassign'}, function() {
this.route('share-temporarily');
this.route('reassign-permanently');
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment