The ng-container
does not work with ng-repeat
inside a table.
This is my code.
<tbody>
<tr>
<ng-container style="border-bottom: 5px solid black" ng-repeat="ca in cas">
<td ng-click="test(ca)">works {{ca.property}}</td>
</ng-container>
</tr>
</tbody>
This code will not work. But if I switch the ng-container
to a td
element this code will work fine with no changes. The problem is ca
is undefined
inside ng-container
but works inside a td
element.