(function() { "use strict"; angular.module('shared') .component('manageStudents', { templateUrl: '/shared/js/angular/main-navigation/manage-students.html', controller: 'ManageStudentsController', bindings: { isAuthenticated: '<' } }) .controller('ManageStudentsController', ['studentList', 'responsiveSiteService', function ManagerStudentsController(studentList, responsiveSiteService) { var ctrl = this; this.$onInit = init; function init(){ if(ctrl.isAuthenticated) { studentList.get(); } } ctrl.isMainNavigationResponsive = responsiveSiteService.isMainNavigationResponsive(); ctrl.responsiveWidthLimit = responsiveSiteService.getResponsiveWidthLimit(); } ]) })();