This should work:
As a child of the ng-repeat:
<div ng-if="insertColumn($index)">...</div>
In your controller:
$scope.insertColumn = function(index) { return index % 3 === 2; }On Thursday, June 5, 2014 8:12:19 AM UTC+2, cutey Love wrote: > > I'm using ng-repeat the problem is every third repeat I need to insert a > new div for collums, how can this be done? is there a way to add logic and > an incrementer into the html? > -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
