mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
25 lines
950 B
TypeScript
25 lines
950 B
TypeScript
/**
|
|
* @license
|
|
* Copyright Google Inc. All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.io/license
|
|
*/
|
|
import { Compiler, InjectionToken, Injector, NgModuleFactoryLoader } from '@angular/core';
|
|
import { Observable } from 'rxjs/Observable';
|
|
import { LoadedRouterConfig, Route } from './config';
|
|
/**
|
|
* @docsNotRequired
|
|
* @experimental
|
|
*/
|
|
export declare const ROUTES: InjectionToken<Route[][]>;
|
|
export declare class RouterConfigLoader {
|
|
private loader;
|
|
private compiler;
|
|
private onLoadStartListener;
|
|
private onLoadEndListener;
|
|
constructor(loader: NgModuleFactoryLoader, compiler: Compiler, onLoadStartListener?: ((r: Route) => void) | undefined, onLoadEndListener?: ((r: Route) => void) | undefined);
|
|
load(parentInjector: Injector, route: Route): Observable<LoadedRouterConfig>;
|
|
private loadModuleFactory(loadChildren);
|
|
}
|