I have created this Plunker to do a few things:

   1. Involve several Angular elements (controllers, directives, services)
   2. Involve jQuery
   3. Create a memory leak (in Controller.js)
   4. Attempt to fix the memory leak by simulating a browser page refresh 
   during routing. Which is a circular object reference keeping things alive 
   in memory indefinitely.

*The Challenge* 
*The challenge is to fix this memory leak from ngRefresh.js* which features 
$rootScope.$on('$routeChangeStart' and $rootScope.$on('$routeChangeSuccess',

EXTRA POINTS FOR FULL GARBAGE COLLECTION

http://plnkr.co/edit/SK7caY?p=preview

I've also posted this here, you can get StackOverflow glory points: 

http://stackoverflow.com/questions/25529014/angularjs-how-to-simulate-garbage-collection



-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to