22 lines
758 B
TypeScript
22 lines
758 B
TypeScript
/** @experimental */
|
|
export declare class UpgradeAdapter {
|
|
constructor(ng2AppModule: Type<any>);
|
|
bootstrap(element: Element, modules?: any[], config?: angular.IAngularBootstrapConfig): UpgradeAdapterRef;
|
|
downgradeNg2Component(type: Type<any>): Function;
|
|
downgradeNg2Provider(token: any): Function;
|
|
upgradeNg1Component(name: string): Type<any>;
|
|
upgradeNg1Provider(name: string, options?: {
|
|
asToken: any;
|
|
}): void;
|
|
}
|
|
|
|
/** @experimental */
|
|
export declare class UpgradeAdapterRef {
|
|
ng1Injector: angular.IInjectorService;
|
|
ng1RootScope: angular.IRootScopeService;
|
|
ng2Injector: Injector;
|
|
ng2ModuleRef: NgModuleRef<any>;
|
|
dispose(): void;
|
|
ready(fn: (upgradeAdapterRef?: UpgradeAdapterRef) => void): void;
|
|
}
|