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