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

25 lines
476 B
JavaScript

(function() {
'use strict';
angular
.module('harbor.layout.admin.option')
.controller('AdminOptionController', AdminOptionController);
AdminOptionController.$inject = [];
function AdminOptionController() {
var vm = this;
vm.toggle = false;
vm.toggleAdminOption = toggleAdminOption;
function toggleAdminOption() {
if(vm.toggle) {
vm.toggle = false;
}else{
vm.toggle = true;
}
}
}
})();