harbor/static/resources/js/layout/admin-option/admin-option.controller.js

28 lines
533 B
JavaScript
Raw Normal View History

(function() {
'use strict';
angular
.module('harbor.layout.admin.option')
.controller('AdminOptionController', AdminOptionController);
2016-06-25 21:12:17 +02:00
AdminOptionController.$inject = ['$scope'];
2016-06-25 21:12:17 +02:00
function AdminOptionController($scope) {
2016-06-26 06:56:58 +02:00
$scope.subsSubPane = 296;
var vm = this;
vm.toggle = false;
vm.toggleAdminOption = toggleAdminOption;
function toggleAdminOption() {
if(vm.toggle) {
vm.toggle = false;
}else{
vm.toggle = true;
}
}
}
})();