71d0eeb966
The `setUpLocationSync` function in @angular/router/upgrade didn't previously let you sync hash-based navigations. With this change, you can now pass an option to `setUpLocationSync` that will make sure location changes run in Angular in hash-based apps. Fixes #24429 #21995 PR Close #28609
9 lines
340 B
TypeScript
9 lines
340 B
TypeScript
export declare const RouterUpgradeInitializer: {
|
|
provide: InjectionToken<((compRef: ComponentRef<any>) => void)[]>;
|
|
multi: boolean;
|
|
useFactory: (ngUpgrade: UpgradeModule) => () => void;
|
|
deps: (typeof UpgradeModule)[];
|
|
};
|
|
|
|
export declare function setUpLocationSync(ngUpgrade: UpgradeModule, urlType?: 'path' | 'hash'): void;
|