Hi there,
I'm currently stuck in getting a directive to render a HTML table. Here is what I want to do: The directive iterates over a list of items and for each item, it creates a new table row and the first column of the row. The rest of the columns should be taken from the body elements that were provided by the user of the directive. Here is an example:
<table>
<tr>
<th>Col 1</th>
<th>Col 2</th>
<th>Col 3</th>
</tr>
<tbody tree-list items="treelist" selection="selection">
<td>{{
item.id}}</td>
<td>{{item.label}}</td>
</tbody>
</table>
and this is the directives template:
<tr ng-repeat="item in itemlist" ng-class="rowClass" ng-show="isVisible(item)">
<td ng-class="leadoffClass">
{{item.label}}
</td>
<span class="dynamic" ng-transclude></span>
</tr>
The problem is that angular does not seem to render the table cells that come from the directive. Is there some obvious problem here?
Regards,
Jürgen