Dear Sander, Im trying to find the best way to use ng-repeat on a custom component. In both ways Im using one template (album card template for example), I tested both perspectives and I found that the number of watchers is quite the same, but technically the link function is being called on each instance of the component (<dir-name ng-repeat><div></div></dir-name>)
On Monday, February 6, 2017 at 3:37:38 PM UTC+2, Sander Elias wrote: > > Hi Mohammad, > > the second one is more performant, mainly because it does something > completely different. > Your first sample creates a custom component for each element in the array. > the second thing creates 1 custom element, that holds crtl.data.length > normal DOM elements. > > Not the same thing. > > Regards > Sander > -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" 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 https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
