Sitelet https://web.archive.org/web/20240920155626/https://angular.dev/api/core/globals/getComponent/
@angular/core/globals

getComponent

function

Retrieves the component instance associated with a given DOM element.

  
    getComponent(  element: Element): T;
  
  
Jump to details