client/staff/directives/departmentStaffView.js
/*
    List of people inside single department, part of departmentView
    directive
*/
List of people inside single department, part of departmentView
directive
List of people inside single department part of departmentView directive
function departmentStaffView() {
    return {
        restrict:'E',
        templateUrl:'staff/partials/directives/departmentstaffview.html',
        scope: {
            caption: '=',
            data: '=',
            order: '=',
            orderdir: '=',
        },
        link:function(scope, elem, attrs) {
            scope.currentPage = 1;
            scope.limit = 12;
            scope.showStaff = true;
            scope.toggleAccordeon = function toggle() {
                scope.showStaff = !scope.showStaff;
                return scope.showStaff;
            };
        }
    };
}
function departmentStaffView ( ) { return { restrict : 'E' , templateUrl : 'staff/partials/directives/departmentstaffview.html' , scope : { caption : '=' , data : '=' , order : '=' , orderdir : '=' , } , link : function ( scope , elem , attrs ) { scope . currentPage = 1 ; scope . limit = 12 ; scope . showStaff = true ; scope . toggleAccordeon = function toggle ( ) { scope . showStaff = ! scope . showStaff ; return scope . showStaff ; } ; } } ; }
List of people inside single department, part of departmentView
directive
List of people inside single department part of departmentView directive
// start page // limit of people per page // accodreon expanded on init // toggle staff cards