| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- /**
- * @license Angular v8.1.0
- * (c) 2010-2019 Google LLC. https://angular.io/
- * License: MIT
- */
- import { ComponentRef } from '@angular/core';
- import { InjectionToken } from '@angular/core';
- import { UpgradeModule } from '@angular/upgrade/static';
- /**
- * @description
- *
- * Creates an initializer that in addition to setting up the Angular
- * router sets up the ngRoute integration.
- *
- * ```
- * @NgModule({
- * imports: [
- * RouterModule.forRoot(SOME_ROUTES),
- * UpgradeModule
- * ],
- * providers: [
- * RouterUpgradeInitializer
- * ]
- * })
- * export class AppModule {
- * ngDoBootstrap() {}
- * }
- * ```
- *
- * @publicApi
- */
- export declare const RouterUpgradeInitializer: {
- provide: InjectionToken<((compRef: ComponentRef<any>) => void)[]>;
- multi: boolean;
- useFactory: (ngUpgrade: UpgradeModule) => () => void;
- deps: (typeof UpgradeModule)[];
- };
- /**
- * @description
- *
- * Sets up a location synchronization.
- *
- * History.pushState does not fire onPopState, so the Angular location
- * doesn't detect it. The workaround is to attach a location change listener
- *
- * @publicApi
- */
- export declare function setUpLocationSync(ngUpgrade: UpgradeModule, urlType?: 'path' | 'hash'): void;
- export { }
|