I want to use twitter Bootstrap with my application powered by AngularJS. I started with grid layout using Scaffolding http://twitter.github.com/bootstrap/scaffolding.html#gridSystem and run into the following problem:
According to the documentation and examples on Bootstrap, the Grid layout has to follow this structure:
<div class="row">
<div class="span4">...</div>
<div class="span8">...</div>
</div>
<div class="row">
<div class="span4">...</div>
<div class="span8">...</div>
</div>
...
Meaning that tags with 'span' classes (columns) must be child elements of the tags with 'row' classes (rows).
In my app I have a plain array of objects - Projects, which I want to show as 3 Projects in every row. Offcourse I don't know the number of Projects I would have to display. As I understand, this kind of structure requires two nested loops - one for rows and one for columns, which will work perfectly if my model was a two-dimentional array but I don't want to change my model (Projects) to fit the view. What I ended up doing is using filter to change the model to the two dimentional array and then used nested ngRepeat to create the columns: http://jsfiddle.net/oburakevych/h4puc/11/
It seems to work as expected, but I'm getting errors in the debug console:
Error: 10 $digest() iterations reached. Aborting!
From my understanding the nested ng-repeat's digest is triggering digest on the outer ng-repeat? Can anyone suggest a right way of implementing this??