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.

ngSwitch directive leaks when inside transcluded content #1621

Closed
@suedama1756

Description

@suedama1756

ngSwitch leaks when inside transcluded content. This is because it associates its data during the compile phase of the template.

element.data(NG_SWITCH, cases);

The template is then cloned for rendering, and as the clone doesn't include the jQuery expando property a leak occurs when the rendered content is removed.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions