I need to write a component that has a template that looks like this:
...
...
This must be used with
Suggestion as per comment, not tested.
Component selector: [spot-row]
Component template:
<tr>...</tr>
<tr>...</tr>
HTML:
<table>
<tbody *ngFor="let spot of spots" spot-row [spot]="spot"></tbody>
<table>
This should produce:
<table>
<tbody>
<tr>...</tr>
<tr>...</tr>
</tbody>
<tbody>
<tr>...</tr>
<tr>...</tr>
</tbody>
...
</table>
Which is valid (multiple <tbody>
in <table>
).