UNPKG

@angular/router

Version:
25 lines (24 loc) 924 B
/** * @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'; import { LoadedRouterConfig, Route } from './config'; /** * @docsNotRequired * @publicApi */ 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; }