Hi,

I have an array of elements in my scope that I need to display in UL list. 
But I need to display 4 elements per UL and then create and other UL and 
display the next 4 etc... So it's just chunking my array and have 2 nested 
ng-repeat. But like many others when I do that directly in the view I have 
an infinite digest loop because of the chunking and the fact that ng-repeat 
uses a group watcher... Here is a Plunker with the issue : 
http://plnkr.co/edit/nBo3NDZzdvFlWOjMzZ1P?p=preview

I read all over the internet different method but some are old, so maybe 
you can help me with the "best way" to handle it. My idea was maybe to 
create a Filter...

Nota : I can't use only CSS in my case, it needs to be multiple UL / LI. 
Also I don't want to mess up my $scope by adding a pre-chunked array to it, 
in my mind it's just a view logic, and later in my app I will need the same 
array not chunked, so I prefer to keep it clean.

Thanks for all your help !

-- 
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.

Reply via email to