@angular/core/global

getOwningComponent

function

Retrieves the component instance whose view contains the DOM element.

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