<label>
<input
  type="checkbox"
  ng-disabled="itemsLength === 0"
  ng-model="isSelected"
  ng-change="doSelectAll()">
  {{label}}
</label>
<button
  ng-click="selectAllExtended()"
  ng-if="!isSelectionExtended && showExtendedMessage">
  {{selectExtendedLabel}}
</button>
<button
  ng-click="deselectAllExtended()"
  ng-if="isSelectionExtended && showExtendedMessage">
  {{deselectExtendedLabel}}
</button>
