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

Function host

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

Gets a `Promise` for the `TestElement` representing the host element of the component.

()

Source from the content-addressed store, hash-verified

326
327 /** Gets a `Promise` for the `TestElement` representing the host element of the component. */
328 async host(): Promise<TestElement> {
329 return this.locatorFactory.rootElement;
330 }
331
332 /**
333 * Gets a `LocatorFactory` for the document root element. This factory can be used to create

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected