<div
  class="link-groups"
  *ngFor="let linkGroup of linkGroups; trackBy: groupTrackByFn"
>
  <div class="group-key">{{ linkGroup.name }}</div>
  <div class="link-group-container" [ngSwitch]="linkGroup.name">
    <a
      [href]="link.url"
      *ngFor="let link of linkGroup.links; trackBy: linkTrackByFn"
      class="link-item"
    >
      {{ link.name }}
    </a>
  </div>
</div>

<div *ngIf="linkGroupsEmpty() && loadCompleted">{{ loadErrorMsg }}</div>
