dist/v-accordion.js
function vPaneController ($scope) {
  var ctrl = this;

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

  ctrl.toggle = function toggle () {
    if (!$scope.isAnimating && !$scope.isDisabled) {
      $scope.accordionCtrl.toggle($scope);
    }
  };

  ctrl.expand = function expand () {
    if (!$scope.isAnimating && !$scope.isDisabled) {
      $scope.accordionCtrl.expand($scope);
    }
  };

  ctrl.collapse = function collapse () {
    if (!$scope.isAnimating && !$scope.isDisabled) {
      $scope.accordionCtrl.collapse($scope);
    }
  };

  ctrl.focusPane = function focusPane () {
    $scope.isFocused = true;
  };

  ctrl.blurPane = function blurPane () {
    $scope.isFocused = false;
  };

  $scope.internalControl = {
    toggle: ctrl.toggle,
    expand: ctrl.expand,
    collapse: ctrl.collapse,
    isExpanded: ctrl.isExpanded
  };
}
function vPaneController ($scope) {
  var ctrl = this;

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

  ctrl.toggle = function toggle () {
    if (!$scope.isAnimating && !$scope.isDisabled) {
      $scope.accordionCtrl.toggle($scope);
    }
  };

  ctrl.expand = function expand () {
    if (!$scope.isAnimating && !$scope.isDisabled) {
      $scope.accordionCtrl.expand($scope);
    }
  };

  ctrl.collapse = function collapse () {
    if (!$scope.isAnimating && !$scope.isDisabled) {
      $scope.accordionCtrl.collapse($scope);
    }
  };

  ctrl.focusPane = function focusPane () {
    $scope.isFocused = true;
  };

  ctrl.blurPane = function blurPane () {
    $scope.isFocused = false;
  };

  $scope.internalControl = {
    toggle: ctrl.toggle,
    expand: ctrl.expand,
    collapse: ctrl.collapse,
    isExpanded: ctrl.isExpanded
  };
}
function vPaneController ( $scope ) { var ctrl = this ; ctrl . isExpanded = function isExpanded ( ) { return $scope . isExpanded ; } ; ctrl . toggle = function toggle ( ) { if ( ! $scope . isAnimating && ! $scope . isDisabled ) { $scope . accordionCtrl . toggle ( $scope ) ; } } ; ctrl . expand = function expand ( ) { if ( ! $scope . isAnimating && ! $scope . isDisabled ) { $scope . accordionCtrl . expand ( $scope ) ; } } ; ctrl . collapse = function collapse ( ) { if ( ! $scope . isAnimating && ! $scope . isDisabled ) { $scope . accordionCtrl . collapse ( $scope ) ; } } ; ctrl . focusPane = function focusPane ( ) { $scope . isFocused = true ; } ; ctrl . blurPane = function blurPane ( ) { $scope . isFocused = false ; } ; $scope . internalControl = { toggle : ctrl . toggle , expand : ctrl . expand , collapse : ctrl . collapse , isExpanded : ctrl . isExpanded } ; }
vPane directive controller
vPane directive controller