Struggling to implement bootstrap's grid layout system in Angular2 with a list of objects. Any tips or guidance would be greatly appreciated!
If I was using HandlebarsJS, I could achieve this layout with the following code:
{{#for elements}}
{{#if index % 12 === 0}}
<div class="row">
{{/if}}
<div class="col-md-2">
{{element.name}}
</div>
{{#if index % 12 === 0}}
</div>
{{/if}}
{{/for}}
Desired output:
<div class="row">
<div class="col-md-2">
Bob
</div>
<div class="col-md-2">
Joe
</div>
...
</div>
<div class="row">
<div class="col-md-2">
Julie
</div>
<div class="col-md-2">
Cheryl
</div>
...
</div>