Hi,

Can u please send me an example on that.
My problem here is, say my object object = {"xyz":{name:"shanthi", 
isFemale:true}, "abc":{name:"john",isFemale:false}}
I want the count of the *isFemale*  *false*, so how i can i get that number 
by filtering?

On Wednesday, March 13, 2013 at 7:59:41 PM UTC+5:30, Cyril Lakech wrote:
>
> Have you tried:
>
> ng-repeat="attribute in (filteredLinkAttributes = 
> (selectedNetchandisingNode.model.attributes | filter:attributesLinkFilter))"
>
> and then use scope.filteredLinkAttributes to calculate lenght
>
> Rgds
>
> Le mardi 15 mai 2012 12:20:44 UTC+2, Leo Nistor a écrit :
>>
>> I'm trying to count and display the number of filtered items within a 
>> ng-repeat: http://jsfiddle.net/leonistor/E9prv/25/ by keeping a variable 
>> in the model ($scope).
>>
>> But as soon as I try to touch it (the commented lines in the filterSearch 
>> function) an error is thrown -- "Uncaught Error: 10 $digest() iterations 
>> reached. Aborting!", and the value is wrong. I understand from previous 
>> posts that the model is "mutating" itself, and since the $count method 
>> isn't available any more I can't think of other way to accomplish my goal.
>>
>> Could you offer some suggestions? (I know it's a newbie question, I'm 
>> still struggling to understand AngularJS concepts, but it's so beautiful 
>> it's worth the effort!)
>>
>> Thank you!
>> Leo
>>
>

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