Angularjs template x divs per row

Angularjs template x divs per row – I want my angular template to output a html fragment every 2rd time on ng-repeat.

“Angularjs repeat output every 3rd time using bootstrap or such”

This outputs every 3rd element but then doesn’t output the ones in between.

So essentially what we want is 3 items (divs) per row.

Angular Template HTML

Angular Filter

In Action:

This jsfiddle shows it in actions:


Sam is a passionate web developer from England. In his spare time he enjoys coding, playing chess, reading and investing.

3 thoughts on “Angularjs template x divs per row

Leave a Reply

Your email address will not be published. Required fields are marked *