mirror of
https://github.com/angular/angular.git
synced 2026-11-27 08:57:55 -05:00
This is needed to prevent memory leaks. The DOM listeners don’t need to be removed for simple examples, but a big internal app shows memory leaks because of them. BREAKING CHANGE: - `Renderer.listen` now has to return a function that removes the event listener.