title: rest urls calls parallely angularjs
body: <p>while I'm getting a json object from Restangular ,another rest url function has been called(before first response comes)</p>
  
  <pre><code>Restangular.all("..").getList("..").then(
       function(data){
         $scope.dataList = data.dataList;       
       }, function errorCallback() {
          alert("error");
       }
  );  
  </code></pre>
  
  <p>here before initializing datalist it is calling another function parallely? how can I avoid this?</p>
  
  <p>thanks. </p>