2021-06-28 19:54:20 +02:00
|
|
|
## API Report File for "@angular/upgrade"
|
|
|
|
|
|
|
|
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
|
|
|
|
|
|
```ts
|
|
|
|
|
|
|
|
import { CompilerOptions } from '@angular/core';
|
|
|
|
import { Injector } from '@angular/core';
|
|
|
|
import { NgModuleRef } from '@angular/core';
|
|
|
|
import { Type } from '@angular/core';
|
|
|
|
import { Version } from '@angular/core';
|
|
|
|
|
|
|
|
// @public @deprecated
|
|
|
|
export class UpgradeAdapter {
|
2017-09-08 18:40:32 -07:00
|
|
|
constructor(ng2AppModule: Type<any>, compilerOptions?: CompilerOptions | undefined);
|
2019-02-11 11:20:53 +01:00
|
|
|
bootstrap(element: Element, modules?: any[], config?: IAngularBootstrapConfig): UpgradeAdapterRef;
|
2017-01-19 13:04:24 +02:00
|
|
|
downgradeNg2Component(component: Type<any>): Function;
|
2016-06-23 18:19:32 -07:00
|
|
|
downgradeNg2Provider(token: any): Function;
|
2016-11-03 22:25:13 +00:00
|
|
|
registerForNg1Tests(modules?: string[]): UpgradeAdapterRef;
|
2016-08-10 18:21:28 -07:00
|
|
|
upgradeNg1Component(name: string): Type<any>;
|
2016-06-22 14:56:10 -07:00
|
|
|
upgradeNg1Provider(name: string, options?: {
|
|
|
|
asToken: any;
|
|
|
|
}): void;
|
|
|
|
}
|
|
|
|
|
2021-06-28 19:54:20 +02:00
|
|
|
// @public @deprecated
|
|
|
|
export class UpgradeAdapterRef {
|
|
|
|
dispose(): void;
|
|
|
|
// (undocumented)
|
2019-02-11 11:20:53 +01:00
|
|
|
ng1Injector: IInjectorService;
|
2021-06-28 19:54:20 +02:00
|
|
|
// (undocumented)
|
2019-02-11 11:20:53 +01:00
|
|
|
ng1RootScope: IRootScopeService;
|
2021-06-28 19:54:20 +02:00
|
|
|
// (undocumented)
|
2016-06-22 14:56:10 -07:00
|
|
|
ng2Injector: Injector;
|
2021-06-28 19:54:20 +02:00
|
|
|
// (undocumented)
|
2016-08-02 07:54:14 -07:00
|
|
|
ng2ModuleRef: NgModuleRef<any>;
|
2017-03-24 09:59:18 -07:00
|
|
|
ready(fn: (upgradeAdapterRef: UpgradeAdapterRef) => void): void;
|
2016-06-22 14:56:10 -07:00
|
|
|
}
|
2016-11-30 13:52:08 -08:00
|
|
|
|
2021-06-28 19:54:20 +02:00
|
|
|
// @public (undocumented)
|
|
|
|
export const VERSION: Version;
|
|
|
|
|
|
|
|
|
|
|
|
// (No @packageDocumentation comment for this package)
|
|
|
|
|
|
|
|
```
|