I am trying to create a table with Angular.js which will have cell's spanning many rows.
Example:
http://jsfiddle.net/famedriver/kDrc6/
Example data
var data = [{Colors: ["red","green","blue"]}]
Expected output
<table>
<tr>
<td rowspan="3">Colors</td>
<td>red</td>
</tr>
<tr>
<td>green</td>
</tr>
<tr>
<td>blue</td>
</tr>
</table>
I have it working by using the ng-show
directive. But that still renders an extra cell, just hidden. It would be ideal to have the table properly rendered.
ng-switch
, as mentioned, won't work in certain elements with strict parsing (ie: a table which only allows certain tags)
Any advice?