title: finish a controller treatment before execute another
body: <p>i have 2 controller loaded in one page : one loaded by $routeProvider,</p>
  
  <p>application.js</p>
  
  <pre><code>.when('/service/:serviceId/:serviceName/',
                          {
                              templateUrl : 'view/service/service.html',
                              controller : 'ServiceController'
                          })
  </code></pre>
  
  <p>the other loaded in the view </p>
  
  <p>service.html</p>
  
  <pre><code>&lt;div align="left"&gt;
          &lt;table class="table-flag"&gt;
              &lt;tr ng-controller="LanguageController"&gt;
                  &lt;td ng-repeat="language in listLanguage"
                      width="50"&gt;                 
                      &lt;input type="image" ng-src="img/flags/{{language.code}}.jpg"width="30" height="20"&gt;&lt;/input&gt; &lt;/a&gt;
                  &lt;/td&gt;
              &lt;/tr&gt;
          &lt;/table&gt;
  
          &lt;div&gt;
  
              &lt;br /&gt;
              &lt;ul&gt;
                  &lt;table class="table table-hover"&gt;
                      &lt;tbody&gt;
                          &lt;tr
                              ng-repeat="detail in service.infoList"&gt;                             
                              &lt;td&gt;&lt;span ng-bind-html-unsafe="detail.label"&gt;&lt;/span&gt;&lt;/td&gt;
                          &lt;/tr&gt;
                      &lt;/tbody&gt;
                  &lt;/table&gt;
  
              &lt;/ul&gt;
          &lt;/div&gt;
  
      &lt;/div&gt;
  </code></pre>
  
  <p>I retrieve some datas from a server using rest</p>
  
  <p>ServiceController</p>
  
  <pre><code>Info.controller('ServiceController', function ServiceController(
          $scope, $http, $routeParams, manageDatas) {
  
  
      $scope.serviceId = $routeParams.serviceId;
      $scope.serviceName = $routeParams.serviceName ;
  
  
      var paramsService = {
          serviceId : $scope.serviceId,
          serviceName : $scope.serviceName 
      };
  
      $scope.loading = true;
  
      var response = $http({
  
          url : 'rest/service',
          params : paramsService,
          method : 'GET'
      });
  
      response.success(function(service) {
          $scope.service = service;
          $scope.loading = false;
          manageDatas.setArrayData($scope.service.languageList);  // service which allow to pass an array in LanguageController           
  
      });
  
  
  });
  </code></pre>
  
  <p>LanguageController</p>
  
  <pre><code>LanguageController.controller('LanguageController', function ServiceByLanguageController(
          $scope, $http, $routeParams, $timeout , manageDatas , $route) {
  
  
      $scope.listLanguage = manageDatas.getDatas(); // retrieve the array passed in ServiceController by a service
     // always null
  
  });
  </code></pre>
  
  <p>The problem is the $http.success method in ServiceController is always executed AFTER LanguageController(verified by breakpoints) so the array $scope.listLanguage is always empty because i don t pass datas....</p>
  
  <p>How can i make the languageController be executed after all the treatments in serviceController finish ?</p>
  
  <p>Thank you very much</p>