Angularjs memory leak in ie8 test

Attached is the code to show the memory leak in ie8 for angularjs.

 

1. performance.html is for angularjs. Keep refreshing by pressing f5 would see a dramatically memory rise.

2. performance2.html is for jquery. Keep refreshing by pressing f5 would not see memory rise. That demonstrate that this is not a bug of the browser ie8. But I googled that ie8 has problem to recycle memory if we have some object refer to each other but no longer used. I guess it is caused by this problem. But I have no idea on how to fix it.

你可能感兴趣的:(memory leak)