Cookies concent notice

This site uses cookies from Google to deliver its services and to analyze traffic.
Learn more
Skip to main content
This site is no longer updated.Head to Angular.devHome
/

This is the archived documentation for Angular v17. Please visit angular.dev to see this page for the current version of Angular.

UpgradeAdapterRef

Use UpgradeAdapterRef to control a hybrid AngularJS / Angular application.

Deprecated: Deprecated since v5. Use upgrade/static instead, which also supports Ahead-of-Time compilation.

      
      class UpgradeAdapterRef {
  ng1RootScope: IRootScopeService
  ng1Injector: IInjectorService
  ng2ModuleRef: NgModuleRef<any>
  ng2Injector: Injector
ready(fn: (upgradeAdapterRef: UpgradeAdapterRef) => void)
dispose() }

Properties

Property Description
ng1RootScope: IRootScopeService
ng1Injector: IInjectorService
ng2ModuleRef: NgModuleRef<any>
ng2Injector: Injector

Methods

Register a callback function which is notified upon successful hybrid AngularJS / Angular application has been bootstrapped.

      
      ready(fn: (upgradeAdapterRef: UpgradeAdapterRef) => void)
    
Parameters
fn (upgradeAdapterRef: UpgradeAdapterRef) => void

The ready callback function is invoked inside the Angular zone, therefore it does not require a call to $apply().

Dispose of running hybrid AngularJS / Angular application.

      
      dispose()
    
Parameters

There are no parameters.