Created
July 22, 2014 22:30
-
-
Save tylerjohnst/b5506922d783fbaf5b4f to your computer and use it in GitHub Desktop.
This file contains hidden or 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.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