UNPKG

omnifilter

Version:

"Awesome filters applied to personal images"

19 lines (16 loc) 434 B
module.exports = function(app) { app.controller('authController', ['$scope', 'userAuth', function($scope, userAuth) { $scope.email = null; $scope.updateEmail = function() { userAuth.getEmail(function(res) { // console.log(res); $scope.email = res.data.email; }); }; $scope.logout = function() { userAuth.signOut(function() { $scope.email = null; }); }; }]); };