chinmaymk/angular-charts — pull request #140 by chaosfinity (2014-09-22 17:30:41+00:00)
Title: Memory Leak Fix

![angular-charts-memory-leak](https://cloud.githubusercontent.com/assets/7525348/4360630/aab85736-427d-11e4-843d-c7d5ffe1d891.JPG)

Issue #98 seems to be caused by the dom events still being attached to the detached elements

This fix skips rewriting the elements from the template and uses d3's remove function to remove the old chart, this destroys the events and allows the garbage collector to clean up