test1
Javascript
code posted
created at 17 Jul 01:13, updated at 17 Jul 01:14
Edit
|
Back
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
Customerio.Router = Ember.Router.extend({ location: 'history', enableLogging: false, root: Ember.Route.extend({ app: Ember.Route.extend({ route: '/', connectOutlets: function(router, context) { router.get('applicationController').connectOutlet('sidebar', 'sidebar'); }, emails: Em.Route.extend({ route: '/emails', index: Em.Route.extend({ route: '/', connectOutlets: function(router, context) { router.get('applicationController').connectOutlet("emails", Customerio.Email.find()); } }), show: Ember.Route.extend({ route: "/:email_id", connectOutlets: function(router, email) { router.get('applicationController').connectOutlet("email", email); } }) }) }) }) }); |
879 Bytes in 2 ms with coderay