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?
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 objectgrid
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?