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
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.