fix(upgrade): deprecate the dynamic version of `ngUpgrade`

This commit is contained in:
Georgios Kalpakas 2017-08-18 17:02:41 +03:00 committed by Miško Hevery
parent 22c409029c
commit 450a13dea0
2 changed files with 6 additions and 4 deletions

View File

@ -96,7 +96,8 @@ let upgradeCount: number = 0;
*
* ```
*
* @stable
* @deprecated Deprecated since v5. Use `upgrade/static` instead, which also supports
* [Ahead-of-Time compilation](guide/aot-compiler).
*/
export class UpgradeAdapter {
private idPrefix: string = `NG2_UPGRADE_${upgradeCount++}_`;
@ -634,7 +635,8 @@ class ParentInjectorPromise {
/**
* Use `UpgradeAdapterRef` to control a hybrid AngularJS / Angular application.
*
* @stable
* @deprecated Deprecated since v5. Use `upgrade/static` instead, which also supports
* [Ahead-of-Time compilation](guide/aot-compiler).
*/
export class UpgradeAdapterRef {
/* @internal */

View File

@ -1,4 +1,4 @@
/** @stable */
/** @deprecated */
export declare class UpgradeAdapter {
constructor(ng2AppModule: Type<any>, compilerOptions?: CompilerOptions);
bootstrap(element: Element, modules?: any[], config?: angular.IAngularBootstrapConfig): UpgradeAdapterRef;
@ -11,7 +11,7 @@ export declare class UpgradeAdapter {
}): void;
}
/** @stable */
/** @deprecated */
export declare class UpgradeAdapterRef {
ng1Injector: angular.IInjectorService;
ng1RootScope: angular.IRootScopeService;