MCPcopy Index your code
hub / github.com/angular/angular / queryDirs

Function queryDirs

packages/core/test/linker/change_detection_integration_spec.ts:80–83  ·  view source on GitHub ↗
(el: DebugElement, dirType: Type<any>)

Source from the content-addressed store, hash-verified

78 }
79
80 function queryDirs(el: DebugElement, dirType: Type<any>): any {
81 const nodes = el.queryAllNodes(By.directive(dirType));
82 return nodes.map((node) => node.injector.get(dirType));
83 }
84
85 function _bindSimpleProp<T>(bindAttr: string): ComponentFixture<TestComponent>;
86 function _bindSimpleProp<T>(bindAttr: string, compType: Type<T>): ComponentFixture<T>;

Calls 4

queryAllNodesMethod · 0.80
mapMethod · 0.80
directiveMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…