-
Notifications
You must be signed in to change notification settings - Fork 487
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Memory Leak since scope is retained #1118
Comments
With Angular, it's more straight forward: when destroying the directive, the DataTable must also be destroyed. With AngularJS, it's a bit more complicated. We need to destroy the DataTables, but we also need to remove the |
This was referenced Oct 28, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What versions you are using?
What's the problem?
I strongly use angular-datatables on my application and I've notice that I was leaking memory due angular-datatables directive.
I've done some memory tests using chrome dev tools on app examples provided, and I've found that is leaking memory. I seems that scope is retained. Please check the screenshot
Can you share your code?
I've only added a tag to the scope in oder to identify if it retained and not elegible for GC ( garbage collector) as recommended on this post http://www.dwmkerr.com/fixing-memory-leaks-in-angularjs-applications/
I've also made the same tests for angular v2 and is also leaking memory
Regards.
Carlos
The text was updated successfully, but these errors were encountered: