@angular/core/globals

getComponent

function

Retrieves the component instance associated with a given DOM element.

  
    function getComponent<T>(  element: Element): T;
  
  
Jump to details