I'm loading data from XboxLive and other services in my ApplicationRoute and want to display that information using named outlets. I used this StackOverflow answer as a guide, but it's not working.
Fiddle is here: http://jsfiddle.net/sandalsoft/7xHfp/
In the ApplicationRoute
, the model
hook loads data from online services. This data is accessible as model.xbox
, model.facebook
, etc... setupController
then sets the content
of the XboxprofileController
to model.xbox
.
This doesn't work when I call App.Xboxprofile.find()
(returns a promise), but it does work when I call App.Xboxprofile.findSimple()
(returns a simple object). Why doesn't this work when find() has any kind of asynchrony? Am I missing something simple, or is this not the right way to architect this?
thanks