Gets the type of the icon.
()
| 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> { |
no test coverage detected