diff --git a/modules/@angular/upgrade/src/upgrade_adapter.ts b/modules/@angular/upgrade/src/upgrade_adapter.ts index adf1bff4c7..72a3afe68b 100644 --- a/modules/@angular/upgrade/src/upgrade_adapter.ts +++ b/modules/@angular/upgrade/src/upgrade_adapter.ts @@ -60,7 +60,7 @@ var upgradeCount: number = 0; * ``` * var adapter = new UpgradeAdapter(forwardRef(() => MyNg2Module)); * var module = angular.module('myExample', []); - * module.directive('ng2Comp', adapter.downgradeNg2Component(Ng2)); + * module.directive('ng2Comp', adapter.downgradeNg2Component(Ng2Component)); * * module.directive('ng1Hello', function() { * return { @@ -237,17 +237,17 @@ export class UpgradeAdapter { * }; * }); * - * module.directive('ng2', adapter.downgradeNg2Component(Ng2)); + * module.directive('ng2', adapter.downgradeNg2Component(Ng2Component)); * * @Component({ * selector: 'ng2', * template: 'ng2 template: text' * }) - * class Ng2 { + * class Ng2Component { * } * * @NgModule({ - * declarations: [Ng2, adapter.upgradeNg1Component('greet')], + * declarations: [Ng2Component, adapter.upgradeNg1Component('greet')], * imports: [BrowserModule] * }) * class MyNg2Module {}