In my current scenario where I want row as header and column will be dynamic value which i have to prouce in material table below is the example
                  Department       Deparment1
Name              Jack             Vimal
Location          Chennai          Lucknow
But the same I was able to produce normal html with angular but the problem is I was not able to destroy the current table when i perform any action in the page.
Normal HTML table
     <table>
        <th *ngFor="let column of columnsToDisplay; let i=index" (click)="assumptionModel(i)">{{column}}</th>
        <tr>
          <td *ngFor="let dat of trialMilestones">{{dat.name}}</td>
        </tr>
        <tr>
          <td *ngFor="let dat of trialMilestones">{{dat.location}}</td>
        </tr>
    </table>
Please let me know how to do is there any possible way to do this seriously struggling
 
    