UpgradeAdapterRef

Stable Class

Class Overview

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

Class Description

Use UpgradeAdapterRef to control a hybrid AngularJS v1 / Angular v2 application.

Class Details

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 v1 / Angular v2 application has been bootstrapped.

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

dispose()

Dispose of running hybrid AngularJS v1 / Angular v2 application.

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

doc_Angular
2016-10-06 09:47:09
Comments
Leave a Comment

Please login to continue.