[ Web Proxy ]
URL:
Viewing: https://angular.dev/api/core/globals/getRootComponents [Back]  [Original]

getRootComponents Angular Skip to main content
menu
close
more_horiz
menuAPI
@angular/core/globals

getRootComponents

function
stable

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

On this page

    arrow_upward_alt Back to the top

    API

    function getRootComponents(elementOrDir: {} | Element): {}[];
    @paramelementOrDir{} | Element

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

    @returns{}[]

    Root components associated with the target object.

    Jump to details

    Web Proxy Viewer  |  New URL  |  Original Page