You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function(scope,element,attrs){element.on('click',function(){scope.selected=true})scope.$on('$destroy',function(){element.off()// deregister all event handlers})}
By the way for more information about memory leaks in AngularJS you could read here
The text was updated successfully, but these errors were encountered:
Project need an example for AngularJS directive memory leak with URL to live example on JSFiddle (or something like that)
For example there's a memory leak
And it could be fixed like the following:
By the way for more information about memory leaks in AngularJS you could read here
The text was updated successfully, but these errors were encountered: