fix(router): expose initalNavigation and dispose so they can be used with webworkers

This commit is contained in:
vsavkin
2016-07-14 17:29:01 -07:00
parent e1109d52e1
commit b77a4a40a4
8 changed files with 29 additions and 21 deletions

View File

@ -127,6 +127,8 @@ export declare class Router {
url: string;
constructor(rootComponentType: Type, resolver: ComponentResolver, urlSerializer: UrlSerializer, outletMap: RouterOutletMap, location: Location, injector: Injector, loader: AppModuleFactoryLoader, config: Routes);
createUrlTree(commands: any[], {relativeTo, queryParams, fragment}?: NavigationExtras): UrlTree;
dispose(): void;
initialNavigation(): void;
navigate(commands: any[], extras?: NavigationExtras): Promise<boolean>;
navigateByUrl(url: string | UrlTree): Promise<boolean>;
parseUrl(url: string): UrlTree;