anchor.diff:    }
   
     void showDatepicker() {
  -    document.getElementById(datepickerId).classes.remove("hide");
  +    hostElement.querySelector("#$datepickerId").classes.remove("hide");
       hidden = false;
  -    document.getElementById(componentId).querySelector("input").focus();
  +    inputDate.focus();
     }
   
     void hideDatepicker() {
  -    document.getElementById(datepickerId).classes.add("hide");
  +    hostElement.querySelector("#$datepickerId").classes.add("hide");
       hidden = true;
     }
   
  
positive.code:   String initialDate;
    DateFormat dateFormat = new DateFormat("yyyy-MM-dd");
    bool hidden = true;
  
    @override
    void ngOnInit() {
      datepickerId = componentId+"-datepicker";
      var now = new DateTime.now();
      initialDate = dateFormat.format(now);
    }
  
    void toggleDatepicker() {
  
negative.code: import 'dart:html';
  import 'package:angular2/core.dart';
  import 'package:intl/intl.dart';
  import 'day_component.dart';
  
  @Component(
    selector: 'datepicker',
    templateUrl: 'datepicker_component.html',
    styleUrls: const['datepicker_component.css'],
    directives: const[DayComponent]
  )
  
  class DatepickerComponent implements OnInit, AfterContentInit, AfterViewInit{
  
    @Input() String componentId;
  
  