In Ember, how to defer readiness, and put AJAX result into a Controller?
问题 I understand that Ember.Application now has deferReadiness that lets me wait for the return of an AJAX call before initializing the app. However, in the example in the api docs, they put the value into a global variable in the App: App = Ember.Application.create(); App.deferReadiness(); jQuery.getJSON("/auth-token", function(token) { App.token = token; App.advanceReadiness(); }); Rather than introducing a global variable for the token, I want to place the returned value into my