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

Method getText

src/material/card/testing/card-harness.ts:54–56  ·  view source on GitHub ↗

Gets all of the card's content as text.

()

Source from the content-addressed store, hash-verified

52
53 /** Gets all of the card's content as text. */
54 async getText(): Promise<string> {
55 return (await this.host()).text();
56 }
57
58 /** Gets the cards's title text. */
59 async getTitleText(): Promise<string> {

Callers 8

isMaterialDeclarationFunction · 0.45
withMethod · 0.45
withMethod · 0.45
withMethod · 0.45

Calls 1

textMethod · 0.65

Tested by

no test coverage detected