I have this app where a project has many line items. And the JSON to be used has an array of projects, each of which has an array of line items. I am going to iterate the line items and display them in a table.so
what I want is something like this:
<table>
ng-repeat="project in projects"
<tr ng-repeat= "l in project.line_items">
...
</tr>
</table>
Clearly I don't want the project to output anything, let alone that i can't quite use a div to contain the ng-repeat='project in projects' attribute, since it's in a table (that's more correct HTML use isn't it?)
The question is then, can I use ng-repeat without it generating any html element (but I do want it to generate child nodes of this element).
Thank you!
--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To view this discussion on the web visit https://groups.google.com/d/msg/angular/-/j2QFa6e5M9QJ.
To post to this group, send email to ang...@googlegroups.com.
To unsubscribe from this group, send email to angular+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/angular?hl=en.