<span class="primary-action pull-left" uib-dropdown>
  <button type="button" class="btn btn-default" uib-dropdown-toggle type="button"
          ng-disabled="vm.config.isDisabled" uib-tooltip=" {{vm.config.title}} " tooltip-placement="left">
    <i class="{{vm.config.icon}}"></i>
    <sapn ng-if="vm.config.name">{{vm.config.name}}</sapn>
    <span class="caret"></span>
  </button>
    <ul uib-dropdown-menu ng-class="{'dropdown-menu-right': vm.menuRight}">
      <li role="menuitem" ng-repeat="option in vm.config.actions"
          ng-class="{'disabled': (option.isDisabled === true)}">
        <a ng-click="vm.handleAction(option)" >
          <i class="{{option.icon}}"></i>
          {{ option.name }}
        </a>
      </li>
    </ul>
</span>

<span class="primary-action pull-left" uib-dropdown>
  <button type="button" class="btn btn-default" uib-dropdown-toggle type="button"
          ng-disabled="vm.config.isDisabled" uib-tooltip=" {{vm.config.title}} " tooltip-placement="left">
    <i class="{{vm.config.icon}}"></i>
    <sapn ng-if="vm.config.name">{{vm.config.name}}</sapn>
    <span class="caret"></span>
  </button>
    <ul uib-dropdown-menu role="menu" ng-class="{'dropdown-menu-right': vm.menuRight}">
      <li role="menuitem" ng-repeat="option in vm.config.actions"
          ng-class="{'disabled': (option.isDisabled === true)}">
        <a ng-if="option.showConfirmation"
           confirmation
           confirmation-id="{{option.confirmationId}}"
           confirmation-title="{{option.confirmationTitle}}"
           confirmation-message="{{option.confirmationMessage}}"
           confirmation-ok-text="{{option.confirmationOkText}}"
           confirmation-on-ok="vm.handleAction(option)"
           confirmation-on-cancel="option.onConfirmationCancel"
           confirmation-ok-style="{{option.confirmationOkStyle}}"
           confirmation-show-cancel="option.confirmationShowCancel">
          <i class="{{option.icon}}"></i>
          {{ option.name }}
        </a>
        <a ng-if="!option.showConfirmation" ng-click="vm.handleAction(option)" >
          <i class="{{option.icon}}"></i>
          {{ option.name }}
        </a>
      </li>
    </ul>
</span>

Add confirmation capabilities to custom dropdown component
Add confirmation capabilities to custom dropdown component
