Hi, I am trying to call http.get() webAPI calls from angularService which will be called from AngularController.js All the function calls happen correctly, but the function in angularcontroller get executed before the http calls could complete execution
I have tried using * .then() function * promisses There will be an anuglar.foreach loop, and for each item we need to call service which makes http.get() Once the controller calls service, instead of waiting for the service to return the response from http.get(), it executes the controller methods and .then function inside the controller method does not execute as it is not yet completed Suggest me a strategy or function that runs the above idealogy effciently and optmizing the code Note: If needed will post the code here -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
