Skip to content

Instantly share code, notes, and snippets.

@kalyco
Created June 9, 2015 14:03
Show Gist options
  • Save kalyco/c3dc1a4fccc2c10dbc21 to your computer and use it in GitHub Desktop.
Save kalyco/c3dc1a4fccc2c10dbc21 to your computer and use it in GitHub Desktop.
In ember first create the route object, then use the model hook to get the data you need from it.
App.UserRoute = Ember.Route.extend({
model: function(params) {
return this.store.find(user, params.user_id);
}
)};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment