Let's say that I have a simple loop like
<div ng-repeat="item in items">{{item.foo}}<br></div>
or
<div ng-repeat="item in items" ui-view="itemView"></div>
How can I avoid rendering defining tag (div) to get:
Foo 1<br>
Foo 2<br>
Foo 3<br>
instead of:
<div>Foo 1<br></div>
<div>Foo 2<br></div>
<div>Foo 3<br></div>
What for: I need this i.e. to creating table rows where wrapping <tr> with div is not allowed, YES I know that I can use <tr ng-repeat=... for simple cases, anyway I'd prefer to move rendering tr tag into itemView as well (I have several conditions to check for adding i.e. proper CSS classes, otherwise I'll need to add these classes into each td in row)
 
     
     
    
tag. I never saw a default behavior of ng-repeat without an element. You can create a custom directive to override the div as well – Fals Dec 22 '14 at 15:50