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.

Switching between sibling routes results in the scope not being destroyed in ngRoute #11112

@smhc

Description

@smhc

The same issue as reported to ui-router also exists in ngRoute: angular-ui/ui-router#1766

The scope for the landing route is retained in the heap even when that state is navigated away. See the below for an example:

http://plnkr.co/edit/tS1z9PgWM927a3joiC95

Navigate to route B, then perform a heap snapshot. Both SibAObject and SibBObject will be on the heap. However, landing on '/home' first, then navigating between /home/a and /home/b allow the scopes to be dereferenced and freed correctly.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions