(function() { "use strict"; angular.module('shared') .component('add', { templateUrl: '/shared/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(); }; } ]); }());