UpgradeAdapter

Stable

Class

Class Overview

class UpgradeAdapter {
constructor(ng2AppModule: Type<any>, compilerOptions?: CompilerOptions)

downgradeNg2Component(type: Type<any>) : Function
upgradeNg1Component(name: string) : Type<any>
registerForNg1Tests(modules?: string[]) : UpgradeAdapterRef
bootstrap(element: Element, modules?: any[], config?:IAngularBootstrapConfig) : UpgradeAdapterRef
upgradeNg1Provider(name: string, options?: {asToken: any})
downgradeNg2Provider(token: any) : Function

}

Class Description

Constructor

constructor(ng2AppModule: Type<any>, compilerOptions?: CompilerOptions)

Class Details

exported from @angular/upgrade/index, defined in @angular/upgrade/src/upgrade_adapter.ts