填写这份《一分钟调查》,帮我们(开发组)做得更好!去填写Home

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): {}[]
      
      ng.getRootComponents(elementOrDir: {} | Element): {}[]
    
参数
elementOrDir {} | Element

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

返回值

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