code: function createElement(parentScope, templateOverride) {
      var directiveScope = parentScope || $rootScope.$new();
      var template = templateOverride || '<md-calendar md-min-date="minDate" md-max-date="maxDate" ' +
          'ng-model="myDate"></md-calendar>';
      var attachedElement = angular.element(template);
      document.body.appendChild(attachedElement[0]);
      var newElement = $compile(attachedElement)(directiveScope);
      attachedCalendarElements.push(newElement);
      applyDateChange();
      return newElement;
    }
docs: Creates and compiles an md-calendar element.