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. | |||
参数
| |||
The |
Dispose of running hybrid AngularJS / Angular application. |
参数没有参数。 |