Cookies concent notice

This site uses cookies from Google to deliver its services and to analyze traffic.
Learn more
Skip to main content
Say hello to Angular's future home!Check out Angular.devHome
/

ng.getRootComponents

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

      
      ng.getRootComponents(elementOrDir: {} | Element): {}[]
    
Parameters
elementOrDir {} | Element

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

Returns

{}[]: Root components associated with the target object.