-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(route): make sure param maps contain the same values as params
The ActivatedRouteSnapshot class of Angular only creates the param maps once, lazily, when it's requested for the first time. But the params are public, so changing them changes the params without changing the param maps. This commit circumvents this Angular bug by overriding the map getters in order to always return a new map created from the params.
- Loading branch information
Showing
2 changed files
with
39 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters