<ul class="breadcrumb-list">
  <li *ngFor="let obj of breadcrumbData">
    <ng-container *ngIf="obj.selected; else plainLi">
      <span class="selected">{{obj.label}}</span>
    </ng-container>
    <ng-template #plainLi>
      <ng-container *ngIf="obj.link; else nolink">
        <a routerLink='{{obj.link}}'>{{obj.label}}</a>
      </ng-container>
      <ng-template #nolink>
        {{obj.label}}
      </ng-template>
    </ng-template>
  </li>
</ul>