Sitelet https://web.archive.org/web/20240920155525/https://angular.dev/api/core/globals/getOwningComponent/
@angular/core/globals

getOwningComponent

function

Retrieves the component instance whose view contains the DOM element.

  
    getOwningComponent(  elementOrDir: {} | Element): T;
  
  
Jump to details