I'm trying to append elements dynamically when I click a button. Actually when I click a button, elements append well. But the problem is that function and style is not worked. My code is below.
P.S. I'm using angular5
HTML
<table style="text-align: center; width: 100%">
<tbody #tContent>
<!-- I want to append element in here -->
</tbody>
</table>
<button type="button" mat-raised-button color="primary" (click)="addTbody()">click here</button>
TS
addTbody() {
// I want append below code whenever I click.
<tr>
<td style="padding: 30px">
<input type="file" accept="image/png, image/gif, image/jpeg, image/bmp, image/x-icon" (click)="alert('$event')">
</td>
<td style="padding: 30px">
<input type="file" accept="image/png, image/gif, image/jpeg, image/bmp, image/x-icon" (click)="test2(file)">
</td>
</tr>
<tr>
<td style="padding: 30px">
<input placeholder="image Info" type="text" size="25">
</td>
<td style="padding: 30px">
<input placeholder="image Info" type="text" size="25">
</td>
</tr>
}