"use strict"; angular.module('raz') .component('add', { templateUrl: '/js/angular/file-cabinet/add.html', controller: 'Add', bindings: { bookid: '@', languageid: '@', enclosed: '@', resourcetype: '@', showasbutton: '<', smallbutton: '<', worksheettype: '@', worksheetsubtypeid: '@', phonicslessonid: '@' } }) .controller('Add', ['fileCabinetRibbonService', function Add(fileCabinetRibbonService) { var ctrl = this; ctrl.isRibbonActive = function () { return fileCabinetRibbonService.ribbonActive(); }; } ]);