Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Digest cycle error on $rootScope filter #22

Open
voronianski opened this issue Oct 11, 2014 · 10 comments
Open

Digest cycle error on $rootScope filter #22

voronianski opened this issue Oct 11, 2014 · 10 comments

Comments

@voronianski
Copy link

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.

@davebream
Copy link

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

@jadrake75
Copy link

I am also seeing this evaluating the library

@rebelliard
Copy link

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>

@allaud
Copy link
Owner

allaud commented Jun 8, 2015

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

@rebelliard
Copy link

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

@byronigoe
Copy link

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

@Soufraz
Copy link

Soufraz commented Aug 27, 2015

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

@charlie-wasp
Copy link

Hello from 2016, it seems that problem is still around

@bitsagarob
Copy link

bitsagarob commented Jul 15, 2016

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

@allaud
Copy link
Owner

allaud commented Jul 15, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants