ng.getRootComponents
检索与 DOM 元素,指令或组件实例关联的所有根组件。根组件是由 Angular 引导启动的组件。
Retrieves all root components associated with a DOM element, directive or component instance. Root components are those which have been bootstrapped by Angular.
检索与 DOM 元素,指令或组件实例关联的所有根组件。根组件是由 Angular 引导启动的组件。
Retrieves all root components associated with a DOM element, directive or component instance. Root components are those which have been bootstrapped by Angular.