My component contains the following HTML structure:
<table>
<thead>
<tr>
<th>
</tr>
</thead>
<tbody>
<ng-container #container class="sample">
</ng-container>
</tbody>
</table
Another component has only a single table row (tr) as follows:
<tr>
<input class="form-control form-control-text-input" type="text" placeholder="Enter ID" [(ngModel)]="id"/>
</tr>
Currently, I am dynamically adding this table row component using the solution provided in this answer from Stack Overflow: Dynamically ADDING and REMOVING Components in Angular
However, when it is rendered on the browser, I encounter the issue illustrated in this image: Click here to view the image
The dynamic component is rendered within a div, but I specifically need the tr inside the tbody.
Any assistance with resolving this issue would be greatly appreciated.
UPDATE: A dummy example has been created on StackBlitz for reference: Stackblitz