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
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
I don't have a solution to this yet. The right solution would be to somehow disconnect the promise life-cycle from digest, but that's a tough issue to solve as it touches so many things starting from testing ending with performance and coalescing of work before dirty-checking and repaints.
I don't have a solution to this yet. The right solution would be to somehow disconnect the promise life-cycle from digest, but that's a tough issue to solve as it touches so many things starting from testing ending with performance and coalescing of work before dirty-checking and repaints.
—
Reply to this email directly or view it on GitHub.
@kseamon how would that work. the real $interval returns a promise, the mock has to as well. I don't think that mock can somehow work around this bigger issue unless we want to make mock not behave like the real implementation which is a really slipper slope to walk on ;-)
It didn't occur to me to check the original $interval's implementation (I filed the bug against ngMock after all). Yes, that would make things trickier, but that just means the original should probably be decoupled from promises as well.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
If the invokeApply param is passed as false, callbacks registered with $interval will not fire (without a subsequent manual call to $apply).
This is because promises fire during the digest cycle on $rootScope.
The text was updated successfully, but these errors were encountered: