@angular/core/global

getRootComponents

function

Retrieves all root components associated with a DOM element, directive or component instance. Root components are those which have been bootstrapped by Angular.

  
    function getRootComponents(  elementOrDir: {} | Element): {}[];
  
  
Jump to details