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

Method _cleanupFontValue

src/material/icon/icon.ts:394–396  ·  view source on GitHub ↗

* Cleans up a value to be used as a fontIcon or fontSet. * Since the value ends up being assigned as a CSS class, we * have to trim the value and omit space-separated values.

(value: string)

Source from the content-addressed store, hash-verified

392 * have to trim the value and omit space-separated values.
393 */
394 private _cleanupFontValue(value: string) {
395 return typeof value === 'string' ? value.trim().split(' ')[0] : value;
396 }
397
398 /**
399 * Prepends the current path to all elements that have an attribute pointing to a `FuncIRI`

Callers 2

fontSetMethod · 0.95
fontIconMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected