mirror of
https://github.com/angular/angular.git
synced 2026-11-24 15:37:51 -05:00
The `Location` creates the `_urlChangeSubscription` when the `onUrlChange` is called for the first time. The subscription `next` function captures `this` and prevents the `Location` from being garbage collected when the root view is removed. PR Close #44901