Reowork Ts prose and add Dart prose/code + Updates to docs and example code (Starting point for Dart code was taken from #1171.)
18 lines
378 B
Dart
Executable File
18 lines
378 B
Dart
Executable File
import 'package:angular2/core.dart';
|
|
import 'hero.dart';
|
|
|
|
// #docregion stylelink
|
|
@Component(
|
|
selector: 'hero-team',
|
|
template: '''
|
|
<link rel="stylesheet" href="hero_team_component.css">
|
|
<h3>Team</h3>
|
|
<ul>
|
|
<li *ngFor="let member of hero.team">
|
|
{{member}}
|
|
</li>
|
|
</ul>''')
|
|
class HeroTeamComponent {
|
|
@Input() Hero hero;
|
|
}
|