I have tried everything to get ui-router's resolve to pass it's value to the given controller–AppCtrl. I am using dependency injection with `$inject`, and that seems to cause the issues. What am I missing?

**Routing**

```
$stateProvider.state('app.index', {
  url: '/me',
  templateUrl: '/includes/app/me.jade',
  controller: 'AppCtrl',
  controllerAs: 'vm',
  resolve: {
    auser: ['User', function(User) {
      return User.getUser().then(function(user) {
        return user;
      });
    }],
  }
});

```

**Controller**

```
appControllers.controller('AppCtrl', AppCtrl);

AppCtrl.$inject = ['$scope', '$rootScope'];

function AppCtrl($scope, $rootScope, auser) {
  var vm = this;
  console.log(auser); // undefined

  ...
}

```

**Edit**
Here's a plunk <http://plnkr.co/edit/PoCiEnh64hR4XM24aH33?p=preview>