Files
MASA/app/partials/sidebar/sidebar.controllers.js
2016-04-26 11:05:25 -04:30

54 lines
1.4 KiB
JavaScript

(function(){
'use strict';
angular
.module('app')
.controller('SidebarCtrl', SidebarCtrl)
SidebarCtrl.$inject = ['$scope'];
function SidebarCtrl($scope) {
var that = this;
$scope.showChilds = function(item){
item.active = !item.active;
};
$scope.items = [
{
text: 'Módulo de Administración',
subItems: [
{
state: 'ProfessorList',
text: 'Listar Profesores'
},
{
state: 'ProfessorCreate',
text: 'Agregar Profesores'
}
]
},
{
text: 'Módulo de Materias',
subItems: [
{
state: 'CourseList',
text: 'Listar Materias'
},
{
state: 'CourseCreate',
text: 'Agregar Materia'
}
]
},
{
text: 'Módulo de Reportes',
subItems: [
{
state: 'courseReport',
text: 'Reportes'
}
]
}
];
};
})();