chore(public_api): update public api
This commit is contained in:
parent
6fbe56dbf2
commit
39d04b4a15
|
@ -154,6 +154,11 @@ export declare class AppModuleFactory<T> {
|
|||
create(parentInjector?: Injector): AppModuleRef<T>;
|
||||
}
|
||||
|
||||
/** @experimental */
|
||||
export declare abstract class AppModuleFactoryLoader {
|
||||
abstract load(path: string): Promise<AppModuleFactory<any>>;
|
||||
}
|
||||
|
||||
/** @stable */
|
||||
export declare class AppModuleMetadata extends InjectableMetadata {
|
||||
directives: Array<Type | any[]>;
|
||||
|
@ -1287,6 +1292,17 @@ export declare function style(tokens: string | {
|
|||
[key: string]: string | number;
|
||||
}>): AnimationStyleMetadata;
|
||||
|
||||
/** @experimental */
|
||||
export declare class SystemJsAppModuleFactoryLoader implements AppModuleFactoryLoader {
|
||||
load(path: string): Promise<AppModuleFactory<any>>;
|
||||
}
|
||||
|
||||
/** @experimental */
|
||||
export declare class SystemJsAppModuleLoader implements AppModuleFactoryLoader {
|
||||
constructor(_compiler: Compiler);
|
||||
load(path: string): Promise<AppModuleFactory<any>>;
|
||||
}
|
||||
|
||||
/** @experimental */
|
||||
export declare class SystemJsCmpFactoryResolver implements ComponentResolver {
|
||||
clearCache(): void;
|
||||
|
|
|
@ -93,6 +93,9 @@ export declare const PRIMARY_OUTLET: string;
|
|||
/** @experimental */
|
||||
export declare function provideRouter(config: RouterConfig, opts?: ExtraOptions): any[];
|
||||
|
||||
/** @experimental */
|
||||
export declare function provideRoutes(config: RouterConfig): any;
|
||||
|
||||
/** @experimental */
|
||||
export interface Resolve<T> {
|
||||
resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<any> | any;
|
||||
|
@ -114,7 +117,7 @@ export declare class Router {
|
|||
events: Observable<Event>;
|
||||
routerState: RouterState;
|
||||
url: string;
|
||||
constructor(rootComponentType: Type, resolver: ComponentResolver, urlSerializer: UrlSerializer, outletMap: RouterOutletMap, location: Location, injector: Injector, config: RouterConfig);
|
||||
constructor(rootComponentType: Type, resolver: ComponentResolver, urlSerializer: UrlSerializer, outletMap: RouterOutletMap, location: Location, injector: Injector, loader: AppModuleFactoryLoader, config: RouterConfig);
|
||||
createUrlTree(commands: any[], {relativeTo, queryParams, fragment}?: NavigationExtras): UrlTree;
|
||||
navigate(commands: any[], extras?: NavigationExtras): Promise<boolean>;
|
||||
navigateByUrl(url: string | UrlTree): Promise<boolean>;
|
||||
|
@ -173,8 +176,8 @@ export declare class RouterOutlet {
|
|||
component: Object;
|
||||
isActivated: boolean;
|
||||
outletMap: RouterOutletMap;
|
||||
constructor(parentOutletMap: RouterOutletMap, location: ViewContainerRef, componentFactoryResolver: ComponentFactoryResolver, name: string);
|
||||
activate(activatedRoute: ActivatedRoute, providers: ResolvedReflectiveProvider[], outletMap: RouterOutletMap): void;
|
||||
constructor(parentOutletMap: RouterOutletMap, location: ViewContainerRef, resolver: ComponentFactoryResolver, name: string);
|
||||
activate(activatedRoute: ActivatedRoute, loadedResolver: ComponentFactoryResolver, providers: ResolvedReflectiveProvider[], outletMap: RouterOutletMap): void;
|
||||
deactivate(): void;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue