1 | /**
|
2 | * @license Angular v8.0.2
|
3 | * (c) 2010-2019 Google LLC. https://angular.io/
|
4 | * License: MIT
|
5 | */
|
6 |
|
7 | import { ComponentRef } from '@angular/core';
|
8 | import { InjectionToken } from '@angular/core';
|
9 | import { UpgradeModule } from '@angular/upgrade/static';
|
10 |
|
11 | /**
|
12 | * @description
|
13 | *
|
14 | * Creates an initializer that in addition to setting up the Angular
|
15 | * router sets up the ngRoute integration.
|
16 | *
|
17 | * ```
|
18 | * @NgModule({
|
19 | * imports: [
|
20 | * RouterModule.forRoot(SOME_ROUTES),
|
21 | * UpgradeModule
|
22 | * ],
|
23 | * providers: [
|
24 | * RouterUpgradeInitializer
|
25 | * ]
|
26 | * })
|
27 | * export class AppModule {
|
28 | * ngDoBootstrap() {}
|
29 | * }
|
30 | * ```
|
31 | *
|
32 | * @publicApi
|
33 | */
|
34 | export declare const RouterUpgradeInitializer: {
|
35 | provide: InjectionToken<((compRef: ComponentRef<any>) => void)[]>;
|
36 | multi: boolean;
|
37 | useFactory: (ngUpgrade: UpgradeModule) => () => void;
|
38 | deps: (typeof UpgradeModule)[];
|
39 | };
|
40 |
|
41 | /**
|
42 | * @description
|
43 | *
|
44 | * Sets up a location synchronization.
|
45 | *
|
46 | * History.pushState does not fire onPopState, so the Angular location
|
47 | * doesn't detect it. The workaround is to attach a location change listener
|
48 | *
|
49 | * @publicApi
|
50 | */
|
51 | export declare function setUpLocationSync(ngUpgrade: UpgradeModule, urlType?: 'path' | 'hash'): void;
|
52 |
|
53 | export { }
|