1. override
void attached()

Called by the DOM when this element has been inserted into the live document.

More information can be found in the Custom Elements draft specification.

Source

@override
void attached() {
  super.attached();
  currentDateChanged(null,currentDate);

}