Skip to content
This repository has been archived by the owner on Nov 18, 2019. It is now read-only.

Signature plugin causes infinite $digest loop #73

Open
thomaspaulb opened this issue Feb 16, 2018 · 1 comment
Open

Signature plugin causes infinite $digest loop #73

thomaspaulb opened this issue Feb 16, 2018 · 1 comment

Comments

@thomaspaulb
Copy link

thomaspaulb commented Feb 16, 2018

Affected Angular versions: at least 1.5.7, 1.6.4

How to reproduce:

  1. Download demo code
  2. Add this snippet inside the main function in app.js:
    var nbDigest = 0;
    $rootScope.$watch(function() {
      nbDigest++;
      console.log('.');
    });
  1. Observe digest getting called indefinitely.

This is a problem in complex applications with many different elements on the screen, since the whole lot of it gets reevaluated multiple times per second and crashes the browser.

@thomaspaulb
Copy link
Author

Also found the culprit.

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

No branches or pull requests

1 participant