Skip to content

Instantly share code, notes, and snippets.

@Panchev
Created June 2, 2016 08:23
Show Gist options
  • Save Panchev/d476bbfe133e8259fe72b6b1d6e50b04 to your computer and use it in GitHub Desktop.
Save Panchev/d476bbfe133e8259fe72b6b1d6e50b04 to your computer and use it in GitHub Desktop.
<li class="cb-menu-item" ng-class="{ 'cb-menu-item-current': vm.isSegmentOpened() }" data-type="{{ vm.segment.type }}">
<a class="cb-menu-link" ng-href="vm.getSegmentHref()">
<span class="cb-segment-title">{{ vm.segment.title }}</span>
<i class="fa fa-chevron-left" ng-if="vm.segment.children.length"></i>
<span class="cb-menu-link-count">
<ng-pluralize count="vm.segment.children.length" when="vm.pluralizeRules"></ng-pluralize>
</span>
</a>
<ul class="cb-menu-dropdown" ui-sortable="vm.sortableOptions" ng-model="vm.segment.children">
<li ng-repeat="child in vm.segment.children">
<a ng-href="{{ vm.getChildHref(child.id, vm.segment.type) }}">
{{ child.settings.title }}
</a>
</li>
</ul>
</li>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment