2017-08-18 10:02:41 -04:00
|
|
|
/** @deprecated */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class UpgradeAdapter {
|
2017-09-08 21:40:32 -04:00
|
|
|
constructor(ng2AppModule: Type<any>, compilerOptions?: CompilerOptions | undefined);
|
2019-02-11 05:20:53 -05:00
|
|
|
bootstrap(element: Element, modules?: any[], config?: IAngularBootstrapConfig): UpgradeAdapterRef;
|
2017-01-19 06:04:24 -05:00
|
|
|
downgradeNg2Component(component: Type<any>): Function;
|
2016-06-23 21:19:32 -04:00
|
|
|
downgradeNg2Provider(token: any): Function;
|
2016-11-03 18:25:13 -04:00
|
|
|
registerForNg1Tests(modules?: string[]): UpgradeAdapterRef;
|
2016-08-10 21:21:28 -04:00
|
|
|
upgradeNg1Component(name: string): Type<any>;
|
2016-06-22 17:56:10 -04:00
|
|
|
upgradeNg1Provider(name: string, options?: {
|
|
|
|
asToken: any;
|
|
|
|
}): void;
|
|
|
|
}
|
|
|
|
|
2017-08-18 10:02:41 -04:00
|
|
|
/** @deprecated */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class UpgradeAdapterRef {
|
2019-02-11 05:20:53 -05:00
|
|
|
ng1Injector: IInjectorService;
|
|
|
|
ng1RootScope: IRootScopeService;
|
2016-06-22 17:56:10 -04:00
|
|
|
ng2Injector: Injector;
|
2016-08-02 10:54:14 -04:00
|
|
|
ng2ModuleRef: NgModuleRef<any>;
|
2016-06-22 17:56:10 -04:00
|
|
|
dispose(): void;
|
2017-03-24 12:59:18 -04:00
|
|
|
ready(fn: (upgradeAdapterRef: UpgradeAdapterRef) => void): void;
|
2016-06-22 17:56:10 -04:00
|
|
|
}
|
2016-11-30 16:52:08 -05:00
|
|
|
|
|
|
|
export declare const VERSION: Version;
|