
<!-- dashboard.component.html -->

<div *ngIf="sampleData && sampleData.length > 0">
    <table>
      <thead>
        <tr>
          <th *ngFor="let key of objectKeys(sampleData[0])">{{ key }}</th>
        </tr>
      </thead>
      <tbody>
        <tr *ngFor="let item of sampleData">
          <td *ngFor="let key of objectKeys(item)">{{ item[key] }}</td>
        </tr>
      </tbody>
    </table>
  </div>
  <div *ngIf="!(sampleData && sampleData.length)">
    No data available.
  </div>
  