cvuorinen / angular1-async-filter

Angular2 async pipe implemented as Angular 1 filter to handle promises & RxJS observables
MIT License
59 stars 6 forks source link

cleanup subscriptions & values when the scope is destroyed #2

Closed sirbarrence closed 8 years ago

sirbarrence commented 8 years ago

when scope is destroyed, dispose of the subscription, delete the reference to the subscription, and delete the reference to the last value

sirbarrence commented 8 years ago

A plunkr to try it out http://plnkr.co/edit/3wnt696MexklJ14O0ghH?p=preview

cvuorinen commented 8 years ago

Thanks for the PR.