feat(router): add an option to rerun guards and resolvers when query changes

Closes #14514
Closes #14567
This commit is contained in:
vsavkin
2017-02-17 21:01:58 -05:00
committed by Victor Berchet
parent fbe4b76f2d
commit c2e0f71a78
6 changed files with 163 additions and 9 deletions

View File

@ -197,6 +197,7 @@ export interface Route {
pathMatch?: string;
redirectTo?: string;
resolve?: ResolveData;
runGuardsAndResolvers?: RunGuardsAndResolvers;
}
/** @experimental */
@ -376,6 +377,9 @@ export declare class RoutesRecognized {
toString(): string;
}
/** @experimental */
export declare type RunGuardsAndResolvers = 'paramsChange' | 'paramsOrQueryParamsChange' | 'always';
/** @experimental */
export declare abstract class UrlHandlingStrategy {
abstract extract(url: UrlTree): UrlTree;