Skip to content

Commit

Permalink
feat: index and count (#62)
Browse files Browse the repository at this point in the history
Co-authored-by: Meli <martin.meli@qwkinsights.cloud>
  • Loading branch information
dedrazer and Meli authored Nov 26, 2020
1 parent a518ae5 commit ecd6ff8
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions libs/xng-breadcrumb/src/lib/breadcrumb.component.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
<nav aria-label="breadcrumb" class="xng-breadcrumb-root" [ngClass]="class">
<ol class="xng-breadcrumb-list">
<ng-container
*ngFor="let breadcrumb of breadcrumbs; last as isLast; first as isFirst"
>
*ngFor="
let breadcrumb of breadcrumbs;
last as isLast;
first as isFirst;
index as index;
count as count;">
<li class="xng-breadcrumb-item">
<a
*ngIf="!isLast"
Expand All @@ -18,7 +22,9 @@
$implicit: breadcrumb.label,
info: breadcrumb.info,
last: isLast,
first: isFirst
first: isFirst,
index: index,
count: count
}
"
></ng-container>
Expand All @@ -35,7 +41,9 @@
$implicit: breadcrumb.label,
info: breadcrumb.info,
last: isLast,
first: isFirst
first: isFirst,
index: index,
count: count
}
"
></ng-container>
Expand Down

0 comments on commit ecd6ff8

Please sign in to comment.