title: angular-meteor.auth resolve to a blank page
body: <p>I'm trying to authenticate the user before the view, in this case <code>dashboard</code>, gets rendered.</p>
  
  <p>If the user is logged in, then your good to go, but if not, redirect to <code>login</code> state.</p>
  
  <p>This is my controller:</p>
  
  <pre><code>import angular from 'angular';
  import angularMeteor from 'angular-meteor';
  import uiRouter from 'angular-ui-router';
  import angularMeteorAuth from 'angular-meteor-auth';
  import { Meteor } from 'meteor/meteor';
  import { Accounts } from 'meteor/accounts-base';
  import { name as navBar } from '../navBar/navBar';
  
  import './dashboard.html';
  
  class dashboardCtrl {
    constructor($scope) {
      'ngInject';
  
      if (Meteor.user()) {
        console.log('logged in ', Meteor.user());
      } else {
        console.log('not logged in or error');
      }
    }
  }
  
  const name = 'dashboard';
  
  export default angular.module(name, [
    angularMeteor,
    uiRouter,
    navBar,
    angularMeteorAuth
  ])
    .component(name, {
      templateUrl: `imports/ui/components/${name}/${name}.html`,
      controller: dashboardCtrl,
    })
    .config(function($stateProvider, $urlRouterProvider) {
      'ngInject';
  
      $stateProvider
      .state('dashboard', {
        url: '/dashboard',
        template: '&lt;dashboard&gt;&lt;/dashboard&gt;',
        resolve: {
          user: function($auth, $state){
            return $auth.requireUser().then(function(){
              return true;
            }, function(err){
              $state.go('login');
            });
          }
        }
      })
    })
  </code></pre>
  
  <p>This works fine if the user is not logged in, it will redirect to <code>login</code> normally, but when the user is indeed logged in and you try to refresh in <code>dashboard</code> it returns a blank screen/page with no console logs or errors or anything.</p>
  
  <p>How can I solve this?</p>
  
  <p>Thanks!</p>