This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27.5k
AngularJS: Memory Leak with ng-repeat using custom objects (w/simple PLUNKR) #11169
Milestone
Comments
Reading the latest comments, is it safe to assume that this is indeed a bug in the framework? if so, what timeline should we expect to have a fix? Thanks for your efforts! @Narretz |
realityking
added a commit
to realityking/angular.js
that referenced
this issue
Feb 25, 2015
I'd see this more of a limitation of the V8 garbage collector than a bug in Angular. It is however a nice little optimisation opportunity. If there are no issues the change will probably be part of 1.3.15. |
realityking
added a commit
to realityking/angular.js
that referenced
this issue
Mar 4, 2015
petebacondarwin
pushed a commit
that referenced
this issue
Mar 9, 2015
petebacondarwin
pushed a commit
that referenced
this issue
Mar 9, 2015
hansmaad
pushed a commit
to hansmaad/angular.js
that referenced
this issue
Mar 10, 2015
netman92
pushed a commit
to netman92/angular.js
that referenced
this issue
Aug 8, 2015
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
(SIMPLE PLUNKR HERE: http://plnkr.co/edit/1Adh2P65ZS8YHYJZhLMk)
(DETAILED STACKOVERFLOW EXPLANATION HERE: http://stackoverflow.com/questions/28683992/angularjs-memory-leak-with-ng-repeat-using-custom-objects-w-simple-plunkr)
SUMMARY:
There is a leak using ng-repeat after the 2nd wave iterating over an array of custom objects like this :
NOTE: 'mySampleObjects' is an array of the following object instances:
Memory profile reveals an extra 'd_sampleObject' left over and not de-referenced. More details (via a controller and an injected service) in the Stackoverflow link above. A simple demonstration also in the provided plunkr link. Any thoughts and help greatly appreciated in advance!
The text was updated successfully, but these errors were encountered: