Skip to content

Instantly share code, notes, and snippets.

@fivetwentysix
Created June 26, 2014 05:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fivetwentysix/59564e1032d4e65cf710 to your computer and use it in GitHub Desktop.
Save fivetwentysix/59564e1032d4e65cf710 to your computer and use it in GitHub Desktop.
DemoApp.PlayersShowController = Ember.ObjectController.extend
needs: 'application'
matches: (->
swords = []
# doesn't work ...
controllers.application.swordsPromise.then (data) ->
heroes = data
...
).property('model.matches')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment