feat(router): Allow navigation without updating the URL (#9608)

This commit is contained in:
Brandon
2016-08-04 13:46:09 -05:00
committed by Alex Rickabaugh
parent 2b704f0586
commit 63b82cd730
3 changed files with 64 additions and 8 deletions

View File

@ -106,6 +106,7 @@ export interface NavigationExtras {
preserveQueryParams?: boolean;
queryParams?: Params;
relativeTo?: ActivatedRoute;
skipLocationChange?: boolean;
}
/** @stable */
@ -173,7 +174,7 @@ export declare class Router {
initialNavigation(): void;
isActive(url: string | UrlTree, exact: boolean): boolean;
navigate(commands: any[], extras?: NavigationExtras): Promise<boolean>;
navigateByUrl(url: string | UrlTree): Promise<boolean>;
navigateByUrl(url: string | UrlTree, extras?: NavigationExtras): Promise<boolean>;
ngOnDestroy(): void;
parseUrl(url: string): UrlTree;
resetConfig(config: Routes): void;