mgonto / restangular

AngularJS service to handle Rest API Restful Resources properly and easily
MIT License
7.87k stars 840 forks source link

How to make sync call? #1476

Closed thealberto closed 7 years ago

thealberto commented 7 years ago

Hi, I have a JS function more or less like the following:

AnnouncesRestangular.all('Votes').getList().then(function(votes) {
        votes.forEach(function(pp) {
          ...
        });
      });

In the browser's console I can see the messages from the function after the above one before the above function is done. How can I avoid it?

Thanks for your help