<ng-container *ngIf="selection">
  <nav ngbNav
       #nav="ngbNav"
       class="nav-tabs"
       cdStatefulTab="nfs-details">
    <ng-container ngbNavItem="details">
      <a ngbNavLink
         i18n>Details</a>
      <ng-template ngbNavContent>
        <cd-table-key-value [data]="data">
        </cd-table-key-value>
      </ng-template>
    </ng-container>
    <ng-container ngbNavItem="clients">
      <a ngbNavLink
         i18n>Clients ({{ clients.length }})</a>
      <ng-template ngbNavContent>

        <cd-table #table
                  [data]="clients"
                  columnMode="flex"
                  [columns]="clientsColumns"
                  identifier="addresses"
                  forceIdentifier="true"
                  selectionType="">
        </cd-table>
      </ng-template>
    </ng-container>
  </nav>

  <div [ngbNavOutlet]="nav"></div>
</ng-container>
