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

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -