2016-04-27 11:28:22 -07:00
|
|
|
import {Component, Input} from '@angular/core';
|
2016-04-05 09:27:10 +03:00
|
|
|
import {Hero} from './hero';
|
|
|
|
|
|
|
|
// #docregion stylelink
|
|
|
|
@Component({
|
|
|
|
selector: 'hero-team',
|
|
|
|
template: `
|
|
|
|
<link rel="stylesheet" href="app/hero-team.component.css">
|
|
|
|
<h3>Team</h3>
|
|
|
|
<ul>
|
2016-04-29 01:36:35 +01:00
|
|
|
<li *ngFor="let member of hero.team">
|
2016-04-05 09:27:10 +03:00
|
|
|
{{member}}
|
|
|
|
</li>
|
|
|
|
</ul>`
|
|
|
|
})
|
|
|
|
// #enddocregion stylelink
|
|
|
|
export class HeroTeamComponent {
|
|
|
|
@Input() hero: Hero;
|
|
|
|
}
|