• Overview
@angular/core/globals

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): {}[];
  
  

getRootComponents

{}[]

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

@paramelementOrDir{} | Element

DOM element, component or directive instance for which to retrieve the root components.

@returns{}[]
Jump to details