code: 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
    };
  }
docs: vTab directive controller