mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
0ae77753f3
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.