angularjs - Can we put any tag inside tbody of table element in HTML -
i have peculiar use case requires me use 2 ng-repeats. 1 array of dates , contains date in form of associated array argument dates.
<tbody> <tr ng-repeat="date in dates"> <!-- <tr ng-repeat="datum in data[date]"> --> <td> {{date}} </td> <td> {{datum.carname}} {{datum.regnumber}}</td> <td> {{datum.drivername}} </td> <td> {{datum.starttime}} </td> <td> {{datum.endtime}} </td> <td> {{datum.trip.sourcename}}</td> <td> {{datum.trip.destinationname}} </td> <!-- </tr> --> </tr> </tbody>
now html doesn't allow me use tags inside tbody
apart tr
, td
. know cannot have 2 ng-repeats inside tag workaround ? can insert other tag ?
you can repeat <tbody>
, repeat <tr>
within each <tbody>
<tbody ng-repeat="date in dates"> <tr ng-repeat="datum in data[date]">
there no limits on having more 1 <tbody>
Comments
Post a Comment