mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
2419060fef
Only require a readonly array as input for router commands instead of a writable array. Router itself does not need writable access to the array of commands. If router requires a writable array somebody on the outside would have to spread a readonly array to a new writable array. We can avoid this by just require what route actually needs. Fixes #60269 BREAKING CHANGE: Several methods in the public API of the Router which required writable arrays have now been updated to accept readonly arrays when no mutations are done. PR Close #60345
Angular
The sources for this package are in the main Angular repo. Please file issues and pull requests against that repo.
Usage information and reference details can be found in Angular documentation.
License: MIT