Posted By

alezzzzz on 11/27/14


Tagged

view Angular bootsrap


Versions (?)

Adds .row every 3 items


 / Published in: JavaScript
 

Add bootsrap grid estructure in ng-repeat: Adds .row every 3 items

  1. <div class="row" ng-repeat="item in data track by $index " ng-if="$index%3==0">
  2.  
  3. <div class="col-md-4 col-sm-6" ng-repeat="i in [$index,$index+1,$index+2] | filter:isType(typeFilter)">
  4.  
  5.  
  6.  
  7. </div>
  8.  
  9.  
  10. </div>

Report this snippet  

You need to login to post a comment.