title: how to call the method of controller in routeProvider resolve function
body: <p>I wanna update the data and then show the view bound with this controller, the code is as follow</p>
  
  <pre><code>    angular.module('myApp.student', ['ngRoute'])
      .config(['$routeProvider', function($routeProvider) {
          $routeProvider.when('/student', {
              templateUrl: 'student/student.html',
              css: 'student/assets/student.css',
              controller: 'studentCtrl',
              demand: 'admin'
          });
      }])
      .controller('studentCtrl', ['$scope', 'baseDataUrl', '$http', function($scope, baseDataUrl, $http) {
          $scope.update = function() {
              $http.get(baseDataUrl + '/student/list').then(function(res) {
                  $scope.students = res.data;
              });
          };
  
          $scope.orderProp = "name";
          $scope.update();
      }]);
  </code></pre>
  
  <p>how can i do this as there is no way to inject the controller to the config as I know</p>