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

i catch an error.error '$digester already in progress' #34

Open
samiozer opened this issue Nov 20, 2015 · 1 comment
Open

i catch an error.error '$digester already in progress' #34

samiozer opened this issue Nov 20, 2015 · 1 comment

Comments

@samiozer
Copy link

I made a change in code.where I make changes.It is as follows:

.directive('offClick', ['$rootScope', '$parse', '$timeout', function ($rootScope, $parse, $timeout) {
 $rootScope.$evalAsync(function () {
                    listener.cb(listener.scope, {
                        $event: event
                    });
                    $timeout(function () { listener.scope.$apply() })
                });

If you want to make changes in the code. I'll also use the current version

@Ricardo-Marques
Copy link
Collaborator

@samiozer Is this still an issue? Which version of angular did this happen on?
From the angular documentation for 1.5.7 (and as early as 1.3, at least)

$evalAsync
...
at least one $digest cycle will be performed after expression execution.

What expression was your off-click calling?

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

2 participants