// Plik: r13/directive-controllers/tab.js
angular.module('stockMarketApp')
  .directive('tab', [function() {
    return {
      restrict: 'E',
      transclude: true,
      template: '<div ng-show="selected" ng-transclude></div>',
      require: '^tabs',
      scope: true,
      link: function($scope, $element, $attr, tabCtrl) {
        tabCtrl.registerTab($attr.title, $scope);
      }
    };
  }]);
