feat(router): add pathParamsChange mode for runGuardsAndResolvers (#26861)
This option means guards and resolvers will ignore changes to optional parameters such as query and matrix params. When the path or any path params change, guards and resolvers will be run Related to discussion in #18253 FW-560 #resolve PR Close #26861
This commit is contained in:

committed by
Andrew Kushnir

parent
3da82338d1
commit
bf6ac6cef8
2
tools/public_api_guard/router/router.d.ts
vendored
2
tools/public_api_guard/router/router.d.ts
vendored
@ -451,7 +451,7 @@ export declare class RoutesRecognized extends RouterEvent {
|
||||
toString(): string;
|
||||
}
|
||||
|
||||
export declare type RunGuardsAndResolvers = 'paramsChange' | 'paramsOrQueryParamsChange' | 'always';
|
||||
export declare type RunGuardsAndResolvers = 'pathParamsChange' | 'paramsChange' | 'paramsOrQueryParamsChange' | 'always';
|
||||
|
||||
export declare class Scroll {
|
||||
readonly anchor: string | null;
|
||||
|
Reference in New Issue
Block a user