passman/js/app/controllers/main.js
2016-09-23 12:30:50 +02:00

22 lines
463 B
JavaScript

'use strict';
/**
* @ngdoc function
* @name passmanApp.controller:MainCtrl
* @description
* # MainCtrl
* Controller of the passmanApp
*/
angular.module('passmanApp')
.controller('MainCtrl', ['$scope', '$rootScope', function ($scope, $rootScope) {
$scope.selectedVault = false;
$rootScope.$on('app_menu', function(evt, shown){
$scope.app_sidebar = shown;
});
$rootScope.$on('logout', function () {
$scope.selectedVault = false;
})
}]);