title: Angular name doesn't refresh
body: <p>Auth Ctrl:</p>
  
  <pre><code>.controller('AuthCtrl', function(Users, Auth, $state) {
  var authCtrl = this;
  
  authCtrl.user = {
    name: '',
    email: '',
    password: ''
  };
  
  authCtrl.login = function() {
    Auth.$authWithPassword(authCtrl.user).then(function(auth) {
      $state.go('home');
      console.log('Logged in');
    }, function(error) {
      authCtrl.error = error;
    });
  };
  
  authCtrl.register = function() {
    Auth.$createUser(authCtrl.user).then(function(user) {
      Auth.$authWithPassword(authCtrl.user).then(function(authData) {
        Users.saveUser({
          uid: authData.uid,
          name: authCtrl.user.name,
          mail: authData.password.email
        });
        console.log('Registered');
        $state.go('home');
      });
    }, function(error) {
      authCtrl.error = error;
    });
  };
  });
  </code></pre>
  
  <p>Router:</p>
  
  <pre><code>.config(function($stateProvider, $urlRouterProvider) {
      $stateProvider
        .state('login', {
          url: '/login',
          controller: 'AuthCtrl as authCtrl',
          templateUrl: 'auth/login.html'
        })
        .state('register', {
          url: '/register',
          controller: 'AuthCtrl as authCtrl',
          templateUrl: 'auth/register.html'
        })
  </code></pre>
  
  <p>HTML which causes troubles:</p>
  
  <pre><code>&lt;li ng-show="homeCtrl.isLoggedIn()" ng-class="{active: homeCtrl.isSelected(5)}"&gt;
    &lt;a href ng-click="homeCtrl.selectTab(5, 'profile')"&gt;{{ homeCtrl.getUserName(homeCtrl.currentUser.uid) }}&lt;/a&gt;
  &lt;/li&gt;
  </code></pre>
  
  <p>Home Ctrl has basically the same method as users does:</p>
  
  <pre><code>homeCtrl.getUserName = Users.getUserName;
  
  getUserName: function(uid) {
      if (users.$getRecord(uid)) {
        return users.$getRecord(uid).name;
      }
    },
  </code></pre>
  
  <p>Hello, I'm using Firebase + Angular to create my own app.
  The problem is following: When I'm signing up(or signing in) my username doesn't being refreshed automatically on the page, I have to reload it manually. I guess it's about resolving promises for register and login state, but I have no idea, what to add. Could anyone please help me with this, I'm just stuck.</p>
  
  <p>And the other thing - username appearance takes few seconds, it doesn't happen instantly. Guess it's about function calling in expression, but I don't know how to refactor it.</p>
  
  <p>Any help would be greatly appreciated!</p>