<ol *ngIf="crumbs.length"
    class="breadcrumb">
  <li *ngFor="let crumb of crumbs; let last = last"
      [ngClass]="{ 'active': last }"
      class="breadcrumb-item">
    <a *ngIf="!last && crumb.path !== null"
       [routerLink]="crumb.path">{{ crumb.text }}</a>
    <span *ngIf="last || crumb.path === null">{{ crumb.text }}</span>
  </li>
</ol>
