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

Method getLabel

src/material/tabs/testing/tab-harness.ts:43–45  ·  view source on GitHub ↗

Gets the label of the tab.

()

Source from the content-addressed store, hash-verified

41
42 /** Gets the label of the tab. */
43 async getLabel(): Promise<string> {
44 return (await this.host()).text();
45 }
46
47 /** Gets the aria-label of the tab. */
48 async getAriaLabel(): Promise<string | null> {

Callers

nothing calls this directly

Calls 1

textMethod · 0.65

Tested by

no test coverage detected