Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Keeping the widgets in the scope #392

Open
YonatanKra opened this issue Oct 26, 2014 · 0 comments
Open

Keeping the widgets in the scope #392

YonatanKra opened this issue Oct 26, 2014 · 0 comments

Comments

@YonatanKra
Copy link

Hi,
One "good practice" in angularjs is not to keep DOM elements in the scope.
This might result in memory leaks.
When I'm doing this:
<div kendo-grid="grid"></div>
I'm actually getting the object grid in my scope, and in turn, grid.element, which references to a DOM element.
Am I right in this? Can this be a reason for memory leaks? If so, how can one avoid it and what would be the best practice in releasing the DOM element? Or maybe you take care of it in the directive itself?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant