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

Method getNamespace

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

Gets the namespace of the icon.

()

Source from the content-addressed store, hash-verified

64
65 /** Gets the namespace of the icon. */
66 async getNamespace(): Promise<string | null> {
67 return (await this.host()).getAttribute('data-mat-icon-namespace');
68 }
69
70 /** Gets whether the icon is inline. */
71 async isInline(): Promise<boolean> {

Callers 3

withMethod · 0.80

Calls 1

getAttributeMethod · 0.65

Tested by

no test coverage detected