@angular/core/global

getHostElement

function

Retrieves the host element of a component or directive instance. The host element is the DOM element that matched the selector of the directive.

  
    function getHostElement(  componentOrDirective: {}): Element;
  
  
Jump to details