passman/js/app/controllers/main.js

17 lines
380 B
JavaScript
Raw Normal View History

'use strict';
/**
* @ngdoc function
* @name passmanApp.controller:MainCtrl
* @description
* # MainCtrl
* Controller of the passmanApp
*/
angular.module('passmanApp')
.controller('MainCtrl', ['$scope', '$rootScope', function ($scope, $rootScope) {
2016-09-11 05:30:17 +08:00
$scope.selectedVault = false;
$rootScope.$on('app_menu', function(evt, shown){
$scope.app_sidebar = shown;
})
2016-09-11 05:30:17 +08:00
}]);