Created
June 9, 2015 14:03
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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