Code coverage report for app/components/sidebar-sm/sidebar-sm.controller.js

Statements: 100% (31 / 31)      Branches: 100% (12 / 12)      Functions: 100% (7 / 7)      Lines: 100% (7 / 7)      Ignored: 2 statements, 4 branches     

All files » app/components/sidebar-sm/ » sidebar-sm.controller.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19                         
class SidebarSmController {
    constructor ($rootScope) {
        Object.assign(this, {$rootScope});
    }
 
    toggleSidebar (flag) {
        if (typeof flag === 'undefined') {
            this.$rootScope.showSidebar = !this.$rootScope.showSidebar;
        } else {
            this.$rootScope.showSidebar = flag;
        }
    }
}
 
SidebarSmController.$inject = ['$rootScope'];
 
export default SidebarSmController;