src/tooltip/tooltip.js
// Show the tooltip popup element.
Show the tooltip popup element.
Show the tooltip popup element .
function show() {
              popupTimeout = null;
              if ( transitionTimeout ) {
                $timeout.cancel( transitionTimeout );
                transitionTimeout = null;
              }
              if ( ! scope.content || scope.isOpen ) {
                return angular.noop;
              }
              createTooltip();
              tooltip.css({ top: 0, left: 0, display: 'block' });
              if ( appendToBody ) {
                  $document.find( 'body' ).append( tooltip );
              } else {
                target.after( tooltip );
              }
              scope.isOpen = true;
              scope.$digest(); 
              positionTooltip();
              tooltipWidthWatcher = widthWatcher();
              return positionTooltip;
            }
function show ( ) { popupTimeout = null ; if ( transitionTimeout ) { $timeout . cancel ( transitionTimeout ) ; transitionTimeout = null ; } if ( ! scope . content || scope . isOpen ) { return angular . noop ; } createTooltip ( ) ; tooltip . css ( { top : 0 , left : 0 , display : 'block' } ) ; if ( appendToBody ) { $document . find ( 'body' ) . append ( tooltip ) ; } else { target . after ( tooltip ) ; } scope . isOpen = true ; scope . $digest ( ) ; positionTooltip ( ) ; tooltipWidthWatcher = widthWatcher ( ) ; return positionTooltip ; }
Show the tooltip popup element.
Show the tooltip popup element .
// If there is a pending remove transition, we must cancel it, lest the // tooltip be mysteriously removed. // Don't show empty tooltips. // Set the initial positioning. // Now we add it to the DOM because need some info about it. But it's not // visible yet anyway. // And show the tooltip. // digest required as $apply is not called // Return positioning function as promise callback for correct // positioning after draw.