Many thanks, that's exactly what I was looking for.

El martes, 3 de julio de 2012 13:43:06 UTC-3, Jakub Arnold escribió:
>
> Thanks, that's exactly what I was looking for.
>
> On Tuesday, July 3, 2012 5:20:15 PM UTC+2, Andy Joslin wrote:
>>
>> Here is one way:
>> <p ng-show="(todos | filter:query).length==0">There are no todos for 
>> given query</p>
>>
>> The downside of this way is you'll run the filter function an extra time, 
>> which isn't good for performance.  Although this is a super super simple 
>> filter function, so it won't be noticeable.
>>
>> Another way would be to filter in your controller and make sure it only 
>> runs the filter function once each time the query changes: 
>> http://plunker.no.de/edit/WSeNoi?live=preview
>>
>> This is a bit more trouble to code, but is more efficient if you have an 
>> intensive filter function.
>>
>>

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