Skip to content

Instantly share code, notes, and snippets.

@tylerjohnst
Created July 22, 2014 22:30
Show Gist options
  • Select an option

  • Save tylerjohnst/b5506922d783fbaf5b4f to your computer and use it in GitHub Desktop.

Select an option

Save tylerjohnst/b5506922d783fbaf5b4f to your computer and use it in GitHub Desktop.
App.WidgetRoute = Ember.Route.extend({
model: function(params) {
return Ember.RSVP.hash({
widget: this.store.find('widget' params.id),
cogs: App.MyCustomAjax()
})
},
setupController: function (controller, rsvp) {
controller.set('model', rsvp.widget);
controller.set('cogs', rsvp.cogs);
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment