Skip to content

Instantly share code, notes, and snippets.

@mmun
Last active December 25, 2015 08:09
Show Gist options
  • Save mmun/6944588 to your computer and use it in GitHub Desktop.
Save mmun/6944588 to your computer and use it in GitHub Desktop.
App.AppointmentsIndexRoute = Ember.Route.extend({
model: function(params) {
return RSVP.hash({
appointments: this.store.find('appointment', params),
day: params.day
});
},
setupController: function(controller, model) {
controller.set('model', model.get('appointments'));
controller.set('day', model.get('day'));
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment