2017-02-22 18:13:21 +00:00
|
|
|
import { Component, Input } from '@angular/core';
|
|
|
|
|
|
|
|
|
|
import { Hero } from './hero';
|
|
|
|
|
|
|
|
|
|
@Component({
|
2017-08-22 21:31:15 +02:00
|
|
|
selector: 'app-hero-main',
|
2017-02-22 18:13:21 +00:00
|
|
|
template: `
|
2017-08-22 21:31:15 +02:00
|
|
|
<app-quest-summary></app-quest-summary>
|
|
|
|
|
<app-hero-details [hero]="hero" [class.active]="hero.active">
|
|
|
|
|
<app-hero-controls [hero]="hero"></app-hero-controls>
|
|
|
|
|
</app-hero-details>
|
2017-02-22 18:13:21 +00:00
|
|
|
`
|
|
|
|
|
})
|
|
|
|
|
export class HeroAppMainComponent {
|
|
|
|
|
@Input() hero: Hero;
|
|
|
|
|
}
|