From 16c1837feb3009c37b1818174be2f1532d83d1c4 Mon Sep 17 00:00:00 2001 From: Filipe Silva Date: Thu, 10 Nov 2016 15:27:45 +0000 Subject: [PATCH] change HeroDetailComponent to HeroDetailDirective --- .../upgrade-adapter/ts/app/2-to-1-transclusion/app.module.ts | 4 ++-- .../ts/app/2-to-1-transclusion/hero-detail.component.ts | 2 +- .../_examples/upgrade-adapter/ts/app/upgrade-io/app.module.ts | 4 ++-- .../ts/app/upgrade-io/hero-detail.component.ts | 2 +- .../upgrade-adapter/ts/app/upgrade-static/app.module.ts | 4 ++-- .../ts/app/upgrade-static/hero-detail.component.ts | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/public/docs/_examples/upgrade-adapter/ts/app/2-to-1-transclusion/app.module.ts b/public/docs/_examples/upgrade-adapter/ts/app/2-to-1-transclusion/app.module.ts index 3e0641f152..03a41c3166 100644 --- a/public/docs/_examples/upgrade-adapter/ts/app/2-to-1-transclusion/app.module.ts +++ b/public/docs/_examples/upgrade-adapter/ts/app/2-to-1-transclusion/app.module.ts @@ -4,7 +4,7 @@ import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; import { BrowserModule } from '@angular/platform-browser'; import { UpgradeModule, downgradeComponent } from '@angular/upgrade/static'; -import { heroDetail, HeroDetailComponent } from './hero-detail.component'; +import { heroDetail, HeroDetailDirective } from './hero-detail.component'; import { ContainerComponent } from './container.component'; // #docregion heroupgrade @@ -15,7 +15,7 @@ import { ContainerComponent } from './container.component'; ], declarations: [ ContainerComponent, - HeroDetailComponent + HeroDetailDirective ], entryComponents: [ ContainerComponent diff --git a/public/docs/_examples/upgrade-adapter/ts/app/2-to-1-transclusion/hero-detail.component.ts b/public/docs/_examples/upgrade-adapter/ts/app/2-to-1-transclusion/hero-detail.component.ts index ada60499f8..b38a0b0d94 100644 --- a/public/docs/_examples/upgrade-adapter/ts/app/2-to-1-transclusion/hero-detail.component.ts +++ b/public/docs/_examples/upgrade-adapter/ts/app/2-to-1-transclusion/hero-detail.component.ts @@ -18,7 +18,7 @@ import { Hero } from '../hero'; @Directive({ selector: 'hero-detail' }) -export class HeroDetailComponent extends UpgradeComponent { +export class HeroDetailDirective extends UpgradeComponent { @Input() hero: Hero; constructor(elementRef: ElementRef, injector: Injector) { diff --git a/public/docs/_examples/upgrade-adapter/ts/app/upgrade-io/app.module.ts b/public/docs/_examples/upgrade-adapter/ts/app/upgrade-io/app.module.ts index 3e0641f152..03a41c3166 100644 --- a/public/docs/_examples/upgrade-adapter/ts/app/upgrade-io/app.module.ts +++ b/public/docs/_examples/upgrade-adapter/ts/app/upgrade-io/app.module.ts @@ -4,7 +4,7 @@ import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; import { BrowserModule } from '@angular/platform-browser'; import { UpgradeModule, downgradeComponent } from '@angular/upgrade/static'; -import { heroDetail, HeroDetailComponent } from './hero-detail.component'; +import { heroDetail, HeroDetailDirective } from './hero-detail.component'; import { ContainerComponent } from './container.component'; // #docregion heroupgrade @@ -15,7 +15,7 @@ import { ContainerComponent } from './container.component'; ], declarations: [ ContainerComponent, - HeroDetailComponent + HeroDetailDirective ], entryComponents: [ ContainerComponent diff --git a/public/docs/_examples/upgrade-adapter/ts/app/upgrade-io/hero-detail.component.ts b/public/docs/_examples/upgrade-adapter/ts/app/upgrade-io/hero-detail.component.ts index 795e753316..eb04e61570 100644 --- a/public/docs/_examples/upgrade-adapter/ts/app/upgrade-io/hero-detail.component.ts +++ b/public/docs/_examples/upgrade-adapter/ts/app/upgrade-io/hero-detail.component.ts @@ -23,7 +23,7 @@ import { Hero } from '../hero'; @Directive({ selector: 'hero-detail' }) -export class HeroDetailComponent extends UpgradeComponent { +export class HeroDetailDirective extends UpgradeComponent { @Input() hero: Hero; @Output() deleted: EventEmitter; diff --git a/public/docs/_examples/upgrade-adapter/ts/app/upgrade-static/app.module.ts b/public/docs/_examples/upgrade-adapter/ts/app/upgrade-static/app.module.ts index 3e0641f152..03a41c3166 100644 --- a/public/docs/_examples/upgrade-adapter/ts/app/upgrade-static/app.module.ts +++ b/public/docs/_examples/upgrade-adapter/ts/app/upgrade-static/app.module.ts @@ -4,7 +4,7 @@ import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; import { BrowserModule } from '@angular/platform-browser'; import { UpgradeModule, downgradeComponent } from '@angular/upgrade/static'; -import { heroDetail, HeroDetailComponent } from './hero-detail.component'; +import { heroDetail, HeroDetailDirective } from './hero-detail.component'; import { ContainerComponent } from './container.component'; // #docregion heroupgrade @@ -15,7 +15,7 @@ import { ContainerComponent } from './container.component'; ], declarations: [ ContainerComponent, - HeroDetailComponent + HeroDetailDirective ], entryComponents: [ ContainerComponent diff --git a/public/docs/_examples/upgrade-adapter/ts/app/upgrade-static/hero-detail.component.ts b/public/docs/_examples/upgrade-adapter/ts/app/upgrade-static/hero-detail.component.ts index 874d414509..e8d81dfa8d 100644 --- a/public/docs/_examples/upgrade-adapter/ts/app/upgrade-static/hero-detail.component.ts +++ b/public/docs/_examples/upgrade-adapter/ts/app/upgrade-static/hero-detail.component.ts @@ -15,7 +15,7 @@ import { UpgradeComponent } from '@angular/upgrade/static'; @Directive({ selector: 'hero-detail' }) -export class HeroDetailComponent extends UpgradeComponent { +export class HeroDetailDirective extends UpgradeComponent { constructor(elementRef: ElementRef, injector: Injector) { super('heroDetail', elementRef, injector); }