Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

$location.$$reset is not being reset after $digest if $location doesn't change #1111

Closed
IgorMinar opened this issue Jul 3, 2012 · 0 comments

Comments

@IgorMinar
Copy link
Contributor

http://plunker.no.de/edit/G6PORO?live=preview

if you click on the button you'll see that the location is properly updated and $$reset flag is reset to false after the $digest cycle.

if you click the button one more time, the $$reset flag remains set to true after we exit the digest loop. This is because we reset the $$reset flag only if the $location changed during the digest cycle. In this case the second click set location to the current value, so there is no change.

we should add $$reset value to the internal $location watch so that this value is observed and the flag is reset even when the $location doesn't change.

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

Successfully merging a pull request may close this issue.

1 participant