UNPKG

cobuild-angular-stack

Version:

Base stack angular sass jade gulp

19 lines (15 loc) 440 B
(function () { 'use strict'; angular.module('uniko.authSatellizer') .controller('LogoutController', LogoutController); LogoutController.$inject = ['$scope', 'AdminAuth']; function LogoutController($scope, Auth) { if (!Auth.isAuthenticated()) { return; } Auth.logout() .then(function () { $scope.$emit('Account::logout'); }); } })();