In my Ember app, I have the following code which makes a HTTP call (internally Ember.RSVP.Promise) and returns HTML which is supposed to be populated on screen
getExternalResponse: function(args, sUrl) {
var deferred = this.doXhrPost(args,sUrl);
return deferred;
}
My question is would the above work i.e. will the HTML be populated (as I am using deferred). So I hope it would not wait or something. Also is it the correct way ?
Aucun commentaire:
Enregistrer un commentaire