mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
docs(router): fix misleading description of BaseRouteReuseStrategy (#47786)
The original description gave a false impression that only query params and fragment changes are ignored, while actually `routeParams` changes are ignored as well. PR Close #47786
This commit is contained in:
@@ -64,7 +64,7 @@ export abstract class RouteReuseStrategy {
|
||||
*
|
||||
* This base route reuse strategy only reuses routes when the matched router configs are
|
||||
* identical. This prevents components from being destroyed and recreated
|
||||
* when just the fragment or query parameters change
|
||||
* when just the route parameters, query parameters or fragment change
|
||||
* (that is, the existing component is _reused_).
|
||||
*
|
||||
* This strategy does not store any routes for later reuse.
|
||||
|
||||
Reference in New Issue
Block a user