// #docregion
import 'package:angular2/core.dart';
@Component(
    selector: 'my-child',
    template: '''
    
      -- child view begins --
      {{hero}} is my hero.
      -- child view ends --
     
    ''',
    styles: const [
      '.child {background: Yellow; padding: 8px; }',
      '.my-child {background: LightYellow; padding: 8px; margin-top: 8px}'
    ])
class ChildComponent {
  @Input() String hero;
}