Reowork Ts prose and add Dart prose/code + Updates to docs and example code (Starting point for Dart code was taken from #1171.)
19 lines
488 B
Dart
Executable File
19 lines
488 B
Dart
Executable File
import 'package:angular2/core.dart';
|
|
import 'hero.dart';
|
|
import 'hero_team_component.dart';
|
|
|
|
// #docregion styleurls
|
|
@Component(
|
|
selector: 'hero-details',
|
|
template: '''
|
|
<h2>{{hero.name}}</h2>
|
|
<hero-team [hero]=hero></hero-team>
|
|
<ng-content></ng-content>''',
|
|
styleUrls: const ['hero_details_component.css'],
|
|
directives: const [HeroTeamComponent])
|
|
class HeroDetailsComponent {
|
|
// #enddocregion styleurls
|
|
@Input() Hero hero;
|
|
// #docregion styleurls
|
|
}
|