angular.module('bolt.profile', ['bolt.auth'])

.controller('ProfileController', function ($scope, $rootScope, Auth, Profile) {
  $rootScope.user = {};
  $scope.newInfo = {};

  var getUserInfo = function () {
    Profile.getUser()
    .then(function (user) {
      $rootScope.user = user.data;
    });
  };

  $scope.signout = function () {
    Auth.signout();
  };

  $scope.update = function () {
    var newProperties = {};
    for (var property in $scope.newInfo) {
      newProperties[property] = $scope.newInfo[property];
      $scope.newInfo[property] = '';
    }

    Profile.updateUser(newProperties, $rootScope.user.username)
    .then( function(user) {
      $rootScope.user = user.data;
      //get the current user on rootScope
      getUserInfo();
    });
  };

  getUserInfo();
});

angular.module('bolt.profile', ['bolt.auth'])

.controller('ProfileController', function ($scope, $rootScope, Auth, Profile) {
  $rootScope.user = {};
  $scope.newInfo = {};

  var getUserInfo = function () {
    Profile.getUser()
    .then(function (user) {
      $rootScope.user = user;
    });
  };

  $scope.signout = function () {
    Auth.signout();
  };

  $scope.update = function () {
    var newProperties = {};
    for (var property in $scope.newInfo) {
      newProperties[property] = $scope.newInfo[property];
      $scope.newInfo[property] = '';
    }

    Profile.updateUser(newProperties, $rootScope.user.username)
    .then( function(user) {
      $rootScope.user = user.data;
      //get the current user on rootScope
      getUserInfo();
    });
  };

  $scope.$on('$routeChangeSuccess', function () {
    getUserInfo();
    console.log('loading!');
  // do something
  });
});

--- 
+++ 
@@ -7,7 +7,7 @@
   var getUserInfo = function () {
     Profile.getUser()
     .then(function (user) {
-      $rootScope.user = user;
+      $rootScope.user = user.data;
     });
   };
 
@@ -30,9 +30,5 @@
     });
   };
 
-  $scope.$on('$routeChangeSuccess', function () {
-    getUserInfo();
-    console.log('loading!');
-  // do something
-  });
+  getUserInfo();
 });
Remove routeChangeSuccess function, automatically call getUserInfo on load
