Advertisement
Guest User

Untitled

a guest
Feb 13th, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.   $scope.logout = function() {
  3.     Auth.$unauth();
  4.     $scope.authData = null;
  5.     $window.location.reload(true);
  6.   };
  7.  
  8.   Auth.$onAuth(function(authData) {
  9.     if (authData === null) {
  10.       console.log("Not logged in yet");
  11.     } else {
  12.       console.log("Logged in as", authData.uid);
  13.     }
  14.     $scope.authData = authData; // This will display the user's name in our view
  15.   });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement