Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was 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

@IgorMinar

Description

@IgorMinar

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions