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

Method getTitleText

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

Gets the cards's title text.

()

Source from the content-addressed store, hash-verified

57
58 /** Gets the cards's title text. */
59 async getTitleText(): Promise<string> {
60 return (await this._title())?.text() ?? '';
61 }
62
63 /** Gets the cards's subtitle text. */
64 async getSubtitleText(): Promise<string> {

Callers 3

withMethod · 0.45

Calls 1

textMethod · 0.65

Tested by

no test coverage detected