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
498 B
Dart
Executable File

// #docplaster
import 'package:angular2/core.dart';
// #docregion
@Component(
selector: 'quest-summary',
// #docregion urls
templateUrl: 'quest_summary_component.html',
styleUrls: const ['quest_summary_component.css'])
// #enddocregion urls
class QuestSummaryComponent {}
// #enddocregion
/*
// #docregion encapsulation.native
// warning: few browsers support shadow DOM encapsulation at this time
encapsulation: ViewEncapsulation.Native
// #enddocregion encapsulation.native
*/