I have a list of divs and I want to achieve the following html example:
<div class="groups">
<div class="group">Whatever 1</div>
<div class="group">Whatever 2</div>
<div class="group">Whatever 3</div>
</div>
<div class="groups">
<div class="group">Whatever 4</div>
<div class="group">Whatever 5</div>
<div class="group">Whatever 6</div>
</div>
I have the following:
<div class="group" ng_repeat="group in groups">
<div>{{group.name}}</div>
</div>
How can I encapsulate "group" divs inside a "groups" for every three elements? Also I want to add elements dynamically and have the same behavior.