mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
a7e2327212be53a93fb975ad68f94472cb2fa680
ScrollService tests (#33937)
By clearing `sessionStorage` and unsubscribing from `Location` events, after each test, we reduce the possibility of potential [spooky action at a distance][1]-type of failures in the future. This does not have an impact on the actual app, since `ScrollService` is currently expected to live throughout the lifetime of the app. Still, unsubscribing from `Location` events keeps the code consistent with how other `ScrollService` listeners are handled (e.g. for `window` events). [1]: https://en.wikipedia.org/wiki/Action_at_a_distance_(computer_programming) PR Close #33937
…
Angular
Angular is a development platform for building mobile and desktop web applications using TypeScript/JavaScript and other languages.
Quickstart
Changelog
Learn about the latest improvements.
Want to help?
Want to file a bug, contribute some code, or improve documentation? Excellent! Read up on our guidelines for contributing and then check out one of our issues in the hotlist: community-help.
Languages
TypeScript
81.7%
JavaScript
12.8%
HTML
2%
Starlark
1.8%
CSS
1%
Other
0.7%