Files
ionic-framework/packages/angular/scripts/router/src/router_config_loader.d.ts
2018-02-06 00:13:41 -06:00

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);
}