when i create separately components for table
and thead
and tbody
dissembling in a parent page, the table totally breaks.
don't know how to fix it.
table component:
<table>
<ng-content></ng-content>
</table>
thead component:
<thead>
<tr>
<th>Someple header</th>
<th>Someple header</th>
</tr>
</thead>
tbody component:
<tbody>
<tr>
<td>sample data1</td>
<td>sample data2</td>
</tr>
</tbody>
when put togather:
<app-table>
<app-thead></app-thead>
<app-tbody></app-tbody>
</app-table>
But it breaks the table. all are arranged as inline element. How to fix it?