MCPcopy Create free account
hub / github.com/angular/components / getAllChildLoaders

Function getAllChildLoaders

src/cdk/testing/harness-environment.ts:328–330  ·  view source on GitHub ↗

* Searches for all elements with the given selector under the environment's root element, * and returns an array of `HarnessLoader`s, one for each matching element, rooted at that * element. * @param selector The selector for the root element of the new `HarnessLoader` * @return A list o

(selector: string)

Source from the content-addressed store, hash-verified

326 * @return A list of `HarnessLoader`s, one for each matching element, rooted at that element.
327 */
328 async getAllChildLoaders(selector: string): Promise<HarnessLoader[]> {
329 return (await this.getAllRawElements(selector)).map(e => this.createEnvironment(e));
330 }
331
332 /** Creates a `ComponentHarness` for the given harness type with the given raw host element. */
333 protected createComponentHarness<T extends ComponentHarness>(

Callers

nothing calls this directly

Calls 2

getAllRawElementsMethod · 0.45
createEnvironmentMethod · 0.45

Tested by

no test coverage detected