MCPcopy Create free account
hub / github.com/angular/angular / queryDirs

Function queryDirs

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

Source from the content-addressed store, hash-verified

91 }
92
93 function queryDirs(el: DebugElement, dirType: Type<any>): any {
94 const nodes = el.queryAllNodes(By.directive(dirType));
95 return nodes.map((node) => node.injector.get(dirType));
96 }
97
98 function _bindSimpleProp<T>(bindAttr: string): ComponentFixture<TestComponent>;
99 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