Typically, the *ngFor directive is used to loop through an array, usually containing objects. If your array is named "data," you can implement it like this:
<table *ngIf="data.length"> <!--Only display if there is data-->
<tr>
<th>Firstname</th>
<th>Lastname</th>
<th>Age</th>
</tr>
<tr *ngFor="let item of data">
<td>{{item.firstName}}</td>
<td>{{item.lastName}}</td>
<td>{{item.age}}</td>
</tr>
</table>
Make sure to define the data variable like this:
data:any[]=[] //don't forget to initialize it!
A button can trigger something like:
onClick()
{
this.data.push({firstName:"First Name", lastName:"Last Name", age:18})
}