UpgradeAdapterRef

class

npm Package @angular/upgrade
Module import { UpgradeAdapterRef } from '@angular/upgrade';
Source upgrade/src/dynamic/upgrade_adapter.ts

Overview

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

Description

Use UpgradeAdapterRef to control a hybrid AngularJS / Angular application.

Members

ng1RootScope: IRootScopeService

ng1Injector: IInjectorService

ng2ModuleRef: NgModuleRef<any>

ng2Injector: Injector

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

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

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

dispose()

Dispose of running hybrid AngularJS / Angular application.

© 2010–2017 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v4.angular.io/api/upgrade/UpgradeAdapterRef