filters are run a LOT. Every time the scope changes, it fires digest cycles which calls the appropriate filters, often multiple times. Filters should always return the same output for a given input. In your case firing off http requests is causing all kinds of changes. Putting anything beyond basic logic in a filter is one of the best ways to slow down your application.
The http call should be put into a service to return what you are looking for. Use a controller to hook the service up to your template for display. On Wednesday, 29 January 2014 02:14:52 UTC-8, Ismael Kafeltz wrote: > > I know I answered my own question. > But see this like a "bug-report". > =D > -- 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.
