2016-06-22 17:56:10 -04:00
|
|
|
export declare class UpgradeAdapter {
|
2016-06-23 21:19:32 -04:00
|
|
|
addProvider(provider: Type | Provider | any[] | any): void;
|
|
|
|
bootstrap(element: Element, modules?: any[], config?: angular.IAngularBootstrapConfig): UpgradeAdapterRef;
|
2016-06-22 17:56:10 -04:00
|
|
|
downgradeNg2Component(type: Type): Function;
|
2016-06-23 21:19:32 -04:00
|
|
|
downgradeNg2Provider(token: any): Function;
|
2016-06-22 17:56:10 -04:00
|
|
|
upgradeNg1Component(name: string): Type;
|
|
|
|
upgradeNg1Provider(name: string, options?: {
|
|
|
|
asToken: any;
|
|
|
|
}): void;
|
|
|
|
}
|
|
|
|
|
|
|
|
export declare class UpgradeAdapterRef {
|
|
|
|
ng1Injector: angular.IInjectorService;
|
2016-06-23 21:19:32 -04:00
|
|
|
ng1RootScope: angular.IRootScopeService;
|
2016-06-22 17:56:10 -04:00
|
|
|
ng2ApplicationRef: ApplicationRef;
|
|
|
|
ng2Injector: Injector;
|
|
|
|
dispose(): void;
|
2016-06-23 21:19:32 -04:00
|
|
|
ready(fn: (upgradeAdapterRef?: UpgradeAdapterRef) => void): void;
|
2016-06-22 17:56:10 -04:00
|
|
|
}
|