quick-ng-repeat icon indicating copy to clipboard operation
quick-ng-repeat copied to clipboard

Digest cycle error on $rootScope filter

Open voronianski opened this issue 11 years ago • 10 comments

Have such error:

Error: [$rootScope:infdig] 10 $digest() iterations reached. Aborting!

while trying quick-ng-repeat with filter which is used with $rootScope:

 <tr quick-ng-repeat="event in Event.competition.events | filter:values.globalSearchQuery">

Without filter it works fine.

voronianski avatar Oct 11 '14 11:10 voronianski

I have the same error showing up using Angular 1.3.6, without a filter

davebream avatar Dec 15 '14 13:12 davebream

I am also seeing this evaluating the library

jadrake75 avatar Feb 25 '15 18:02 jadrake75

I fixed this by using the track by expression:

<fieldset quick-ng-repeat="choice in choices track by $index|filter:{ value: '0' }"
  ng-if="$first">
    // stuff
</fieldset>

rebelliard avatar Jun 07 '15 07:06 rebelliard

@voronianski @davebream @jadrake75 can you please confirm this helps?

allaud avatar Jun 08 '15 06:06 allaud

@allaud I just realised that track by simply hides the error, but the filter is ignored. Hope others can confirm.

rebelliard avatar Jun 08 '15 07:06 rebelliard

I'm seeing the same issue, probably because a $watch is being done on the "rhs", which contains filter clauses.

byronigoe avatar Jun 30 '15 19:06 byronigoe

Someone fixed it? I'm facing the same problem..

Soufraz avatar Aug 27 '15 19:08 Soufraz

Hello from 2016, it seems that problem is still around

charlie-wasp avatar Jun 07 '16 03:06 charlie-wasp

Repeat over iteratable as function call also throws this error Example: <tr quick-ng-repeat="event in Event.competition.getEvents()"> Repo looks dead

bitsagarob avatar Jul 15 '16 14:07 bitsagarob

@segersrobbert I don't use Angular much in my job, so I don't have enough time to dive into each PR. Do you have smth special you need my help with?

allaud avatar Jul 15 '16 15:07 allaud