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

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

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

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

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

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

  $scope.internalControl = {
    activate: ctrl.activate,
    isActive: ctrl.isActive
  };
}
function PageDirectiveController ( $scope ) { var ctrl = this ; ctrl . isActive = function isActive ( ) { return ! ! $scope . isActive ; } ; ctrl . activate = function activate ( ) { $scope . pagesCtrl . activate ( $scope ) ; } ; $scope . internalControl = { activate : ctrl . activate , isActive : ctrl . isActive } ; }
vPage directive controller
vPage directive controller