Hi Sander

Thank you for your feedback.

You suggest a custom filter - do you know of any examples of this? Or does
it go by another type of name/function?


On 22 January 2014 07:50, Sander Elias <[email protected]> wrote:

> Hi Tom,
>
> The way you do this isn't the most efficient way,
> Your result data get's piped trough 5 filters. A couple of them need to
> traverse your entire data-set. This is ok(ish) for a small data-set, but if
> it grows this becomes a serious lag.
> For myself I would replace all those filters with just 1 custom made
> filter, that can extract the data you need in 1 go. Also I would optimize
> it in such a way, that if it has enough data to populate the view, you can
> stop, and return the result.
> Also ad an 'track by' to your ng-repeat, then angular can make more
> efficient use of the data.
>
> Regards
> Sander
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "AngularJS" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/angular/-TIYs_vfs74/unsubscribe.
> To unsubscribe from this group and all its topics, 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/groups/opt_out.
>



-- 
Tom Leadbetter

-- 
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/groups/opt_out.

Reply via email to