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.

Memory leak when using ngView and jquery #8061

Closed
@georgiyordanov

Description

@georgiyordanov

The following plunker demonstrates the issue:
http://plnkr.co/edit/BS7EQlBoJDfbMN8bcUop?p=preview

Switching between View1 and View2 a few times makes heap snapshots go up to 40-50 MB.
The problem is related to jquery >= v2.0. Switching to jquery 1.11.1 fixes the problem.
Using a directive with templateUrl and replace=true (which I know is deprecated since 1.2.17) in the view is also needed.

Reproducible: always
Browsers: Chrome 35, Chrome canary (with --js-flags="--nocrankshaft --noopt --nouse-ic") and possibly Firefox 30 (memory goes up easily to 400-500 MB but I don't know a way to force GC in FF)
Operating system: Windows 8

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions