function buildTooltip(markup) {
    element = $compile(markup)(parentScope);
    parentScope.testModel = {};

    parentScope.$apply();
    $material.flushOutstandingAnimations();

    return element;
  }
function buildTooltip(markup) {
    element = $compile(markup)(parentScope);
    parentScope.testModel = {};

    parentScope.$apply();
    $material.flushOutstandingAnimations();

    return element;
  }
function buildTooltip ( markup ) { element = $compile ( markup ) ( parentScope ) ; parentScope . testModel = { } ; parentScope . $apply ( ) ; $material . flushOutstandingAnimations ( ) ; return element ; }
****************************************************** Internal Utility methods ******************************************************
****************************************************** Internal Utility methods ******************************************************
Build tooltip element