<nav mat-tab-nav-bar backgroundColor="primary">
  <ng-container *ngFor="let link of links">
    <a
      *ngIf="link.enabled && hasPermission(link)"
      mat-tab-link
      [active]="activeLink.startsWith(link.route)"
      (click)="activeLink = link.route">
      {{ link.title }}
    </a>
  </ng-container>
</nav>
