title: AngularJS Initialize provider data
body: <p>I have code:</p>
  
  <pre><code>angular.module('admin', [])
  .provider('users', function () {
    this.users = 'default';
    this.$get = function () {
      var that = this;
      return {
          getUsers: function () {
              return that.users;
          }
      }
  };
  })
  .run(function (users, $http) {
    users.users = $http('url'); // and others
  })
  .controller('test', function ($scope, users) {
      $scope.users = users.getUsers();
  });
  </code></pre>
  
  <p>I would like to intitalize data in .run() method (I can't use .config() method because it doesn't let to pass any services like $http). I found .run() method, but this code doesn't work... Data aren't saved in provider. Official documentation says: </p>
  
  <p><strong>"Execute this function after injector creation. Useful for application initialization."</strong></p>
  
  <p>I think it's best way to initialize data.</p>