You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have this issue as well when using $state.go from ui-router. Unfortunately the only thing I could find to fix it was to upgrade the Controller to a Component.
I've included the code block from upgrade_adapter.ts where it happens.
Isn't it considered a bad practice to call $apply() directly. I realize this is a bit different, but I have generally stayed away from direct calls like this, and instead wrapped my code in a $timeout or similar.
I tried this a while back in Beta 1 and it was working.
My issue seems to be related to a $state.go in ui-router as well. Not seeing the error if I navigate directly to the final url and bypassing the $state.go step.
Activity
thesnabe commentedon Apr 19, 2016
I am having this issue aswel. I don't notice any side effects from it though.
adamduren commentedon Apr 22, 2016
I have this issue as well when using
$state.gofromui-router. Unfortunately the only thing I could find to fix it was to upgrade the Controller to a Component.thelgevold commentedon May 18, 2016
I am seeing $digest issues as well when bootstrapping an A1 application using ngUpgrade. My code is using RC 1.0
I've included the code block from upgrade_adapter.ts where it happens.
Isn't it considered a bad practice to call
$apply()directly. I realize this is a bit different, but I have generally stayed away from direct calls like this, and instead wrapped my code in a $timeout or similar.I tried this a while back in Beta 1 and it was working.
thelgevold commentedon May 31, 2016
My issue seems to be related to a $state.go in ui-router as well. Not seeing the error if I navigate directly to the final url and bypassing the $state.go step.
andreialecu commentedon Jun 7, 2016
I'm having the same issue and it is completely killing performance for my app after the error occurs.
However, changing the
rootScope.$apply()to a simple$timeout(() => {});call seems to fix this, and is also the recommended workaround as per http://stackoverflow.com/questions/12729122/angularjs-prevent-error-digest-already-in-progress-when-calling-scope-applyI'm going to submit a PR for this.
thelgevold commentedon Jun 7, 2016
I already submitted a PR
thelgevold commentedon Jun 7, 2016
It's pending review
andreialecu commentedon Jun 7, 2016
@thelgevold great! didn't see it.
andreialecu commentedon Jun 7, 2016
@thelgevold I already had a PR submitted and accepted for that particular line of code as well.
Quite a buggy line looks like. 😄
mhevery commentedon Jun 8, 2016
fixed by #6386
christopherthielen commentedon Jun 8, 2016
#9054
angular-automatic-lock-bot commentedon Sep 8, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.