填寫這份《一分鐘調查》,幫我們(開發組)做得更好!去填寫Home

UpgradeAdapterRef

Use UpgradeAdapterRef to control a hybrid AngularJS / Angular application.

已棄用: 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()
}
    

屬性

屬性說明
ng1RootScope: IRootScopeService
ng1Injector: IInjectorService
ng2ModuleRef: NgModuleRef<any>
ng2Injector: Injector

方法

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

      
      ready(fn: (upgradeAdapterRef: UpgradeAdapterRef) => void)
    
引數
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()
    
引數

沒有引數。