I've run into this problem a couple of times and could not figure out why this happens.
So, I have the following code in the PARENT HTML:
<section>
<h1>Top 3 salesperson</h1>
<h3></h3>
<table>
<tr>
<th>Number</th>
<th>Person ID</th>
<th>Name</th>
<th>Number Of Sold Items</th>
</tr>
<tr>
<td>X</td>
<td>X</td>
<td>X</td>
<td>X</td>
</tr>
<app-salesperson></app-salesperson>
</table>
</section>
The salesperson CHILD html contains the same code:
<tr>
<td>X</td>
<td>X</td>
<td>X</td>
<td>X</td>
</tr>
I just experimented with the code above but check what happens. The code written in the parent follows the structure of the table but the code in the child doesn't. Why is that?:)