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

Method getType

src/material/icon/testing/icon-harness.ts:35–38  ·  view source on GitHub ↗

Gets the type of the icon.

()

Source from the content-addressed store, hash-verified

33
34 /** Gets the type of the icon. */
35 async getType(): Promise<IconType> {
36 const type = await (await this.host()).getAttribute('data-mat-icon-type');
37 return type === 'svg' ? IconType.SVG : IconType.FONT;
38 }
39
40 /** Gets the name of the icon. */
41 async getName(): Promise<string | null> {

Callers 6

getNameMethod · 0.95
getSecondaryTextFunction · 0.45
getTertiaryTextFunction · 0.45
withMethod · 0.45

Calls 1

getAttributeMethod · 0.65

Tested by

no test coverage detected