AngularJS : multiple promise wait all -


I have a little question about the many promises

  getInfo: function () { Return promise. Then (function result) {info = result; // This function has also promised to return ServiceA.functionA (info.login). Then (function (favorite) item (info.favorites = favouriteItems; return $ q.when (info);});}); 

DivX

I wrote a reply to another question explaining this problem using the $ q.all approach.

Check it out:


Comments

Popular posts from this blog

c# - Highlight all words containing a letter in a richtextbox -

Admob interstitials not clickable on Nexus 5 (Android 4.4.2) -

java - MigLayout - selective component fill -