Hi Raju, Try with Defered Object and promise objects, you can set the success callback and error callback for promise object.
You have to maintain the status of the ajax call in the variable and when all the 4 variables are set populate the select boxes. Regards, Jagadesh On Sat, Jul 12, 2014 at 5:46 PM, Raju Smiles <[email protected]> wrote: > I need to load 4 dropdowns with $http ajax request , so that i used for > loop but ajax is asynchronous in nature . so i am getting last dropdown > data only.i am loosing remaining 3 dropdowns data. how can i load 4 > dropdowns at a time > > -- > You received this message because you are subscribed to the Google Groups > "AngularJS" 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 http://groups.google.com/group/angular. > For more options, visit https://groups.google.com/d/optout. > -- Regards Jagadesh -- You received this message because you are subscribed to the Google Groups "AngularJS" 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 http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
