Patrice Chalin ef66e38e54 docs(dev guide): Update 'Component Styles' prose (#1320)
Reowork Ts prose and add Dart prose/code

+ Updates to docs and example code

(Starting point for Dart code was taken from #1171.)
2016-05-10 08:51:23 +01:00

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
}