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

Function rootElement

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

The root element of this `HarnessEnvironment` as a `TestElement`.

()

Source from the content-addressed store, hash-verified

45export abstract class HarnessEnvironment<E> implements HarnessLoader, LocatorFactory {
46 /** The root element of this `HarnessEnvironment` as a `TestElement`. */
47 get rootElement(): TestElement {
48 this._rootElement = this._rootElement || this.createTestElement(this.rawRootElement);
49 return this._rootElement;
50 }
51 set rootElement(element: TestElement) {
52 this._rootElement = element;
53 }

Callers

nothing calls this directly

Calls 1

createTestElementMethod · 0.45

Tested by

no test coverage detected