(function () { "use strict"; var streamApp = angular.module('streamApp'); streamApp.directive('selectDirective', [SelectDirective]); function SelectDirective() { return { restrict: 'E', scope: { items: '=', callback: '=', }, templateUrl: '/App/Directives/selectDirective/selectDirective.html?v=6.0.0c', link: function (scope, element, attrs, tabsCtrl) { scope.select = function (item) { item.selected = !item.selected; if(scope.callback) scope.callback(item); }; } }; } }());