src/vTabs/directives/vTab.js
function TabDirectiveController ($scope) {
  var ctrl = this;

  ctrl.isActive = function isActive () {
    return !!$scope.isActive;
  };

  ctrl.activate = function activate () {
    $scope.tabsCtrl.activate($scope);
  };

  $scope.internalControl = {
    activate: ctrl.activate,
    isActive: ctrl.isActive
  };
}
function TabDirectiveController ($scope) {
  var ctrl = this;

  ctrl.isActive = function isActive () {
    return !!$scope.isActive;
  };

  ctrl.activate = function activate () {
    $scope.tabsCtrl.activate($scope);
  };

  $scope.internalControl = {
    activate: ctrl.activate,
    isActive: ctrl.isActive
  };
}
function TabDirectiveController ( $scope ) { var ctrl = this ; ctrl . isActive = function isActive ( ) { return ! ! $scope . isActive ; } ; ctrl . activate = function activate ( ) { $scope . tabsCtrl . activate ( $scope ) ; } ; $scope . internalControl = { activate : ctrl . activate , isActive : ctrl . isActive } ; }
vTab directive controller
vTab directive controller