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: angular.IRootScopeService ng1Injector: angular.IInjectorService ng2ModuleRef: NgModuleRef<any> ng2Injector: Injector ready(fn: (upgradeAdapterRef: UpgradeAdapterRef) => void) dispose() }

属性

属性名类型说明
ng1RootScope
ng1Injector
ng2ModuleRef
ng2Injector

方法

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

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

参数

fn

Type: (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()

参数

没有参数。