angular.module('flapperNews')
.controller('NavCtrl', [
'$scope',
'Auth',
function($scope, Auth){
  $scope.signedIn = Auth.isAuthenticated;
  $scope.logout = Auth.logout;

  // not sure below is correct
  Auth.currentUser().then(function (user){
  	$scope.user = user;
  });
}]);

@@ -266,14 +266,265 @@
 r;%0A  %7D);
+%0A%0A  $scope.$on('devise:new-registration', function (e, user)%7B%0A    $scope.user = user;%0A  %7D);%0A%0A  $scope.$on('devise:login', function (e, user)%7B%0A  %09$scope.user = user;%0A  %7D);%0A%0A  $scope.$on('devise:logout', function (e, user)%7B%0A  %09$scope.user = %7B%7D;%0A  %7D);%0A  
 %0A%7D%5D);%0A

add event listeners to handle when user authenticate and logs out