17 lines
401 B
TypeScript
17 lines
401 B
TypeScript
import { Component, Input } from '@angular/core';
|
|
|
|
import { Hero } from './hero';
|
|
|
|
@Component({
|
|
selector: 'app-hero-main',
|
|
template: `
|
|
<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>
|
|
`
|
|
})
|
|
export class HeroAppMainComponent {
|
|
@Input() hero: Hero;
|
|
}
|