fix(router): enable loadChildren with function in aot (#13909)

Closes #11075
This commit is contained in:
Dzmitry Shylovich
2017-01-19 02:56:34 +03:00
committed by Miško Hevery
parent 7ffd10541d
commit 2af58622c1
3 changed files with 8 additions and 5 deletions

View File

@ -85,7 +85,7 @@ export interface ExtraOptions {
export declare type LoadChildren = string | LoadChildrenCallback;
/** @stable */
export declare type LoadChildrenCallback = () => Type<any> | Promise<Type<any>> | Observable<Type<any>>;
export declare type LoadChildrenCallback = () => Type<any> | NgModuleFactory<any> | Promise<Type<any>> | Observable<Type<any>>;
/** @stable */
export declare class NavigationCancel {