src/components/datepicker/js/calendar.spec.js
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;
  }
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;
  }
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 ; }
Creates and compiles an md-calendar element.
Creates and compiles an md - calendar element .