How would I use AngularJS ng-repeat to display the following HTML (Twitter Bootstrap Scaffolding)? Essentially, every third record I need to close the </div>, print an <hr>, then open another <div class="span4">
<div class="row">
<div class="span4">
<h3>
Project A
</h3>
</div>
<div class="span4">
<h3>
Project B
</h3>
</div>
<div class="span4">
<h3>
Project C
</h3>
</div>
</div>
<hr>
<div class="row">
<div class="span4">
<h3>
Project D
</h3>
</div>
<div class="span4">
<h3>
Lab Title
</h3>
</div>
<div class="span4">
<h3>
Project E
</h3>
</div>
</div>
I’ve created a fiddle for code demos.
http://jsfiddle.net/ADukg/261/
A more elegant way is to use the view model to provide a chunked collection and then let the view handle it like
and the coffeescript is pretty simple
http://jsfiddle.net/ADukg/370/