Skip to content

Instantly share code, notes, and snippets.

@zzarcon
Last active August 29, 2015 14:07
Show Gist options
  • Select an option

  • Save zzarcon/0d5a2dbc9650b79c7a8a to your computer and use it in GitHub Desktop.

Select an option

Save zzarcon/0d5a2dbc9650b79c7a8a to your computer and use it in GitHub Desktop.
Route dependencies
App.FooRoute = App.Route.extend({
dependencies: ['session.team.championship', 'session.team.teamReport', 'customDependency','position', 'user:12345', 'lineup:cached'],
customDependency: function() {
return new Ember.RSVP.Promise();
}
});
@fernandodrumond
Copy link

I like this approach to load dependencies! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment