Skip to content

Commit

Permalink
docs(upgrade): rename undeclared Ng2 to Ng2Component (angular#11950)
Browse files Browse the repository at this point in the history
  • Loading branch information
amcdnl authored and rkirov committed Sep 27, 2016
1 parent a241ab7 commit 34b31de
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/@angular/upgrade/src/upgrade_adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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: <greet salutation="Hello" [name]="world">text</greet>'
* })
* class Ng2 {
* class Ng2Component {
* }
*
* @NgModule({
* declarations: [Ng2, adapter.upgradeNg1Component('greet')],
* declarations: [Ng2Component, adapter.upgradeNg1Component('greet')],
* imports: [BrowserModule]
* })
* class MyNg2Module {}
Expand Down

0 comments on commit 34b31de

Please sign in to comment.