MCPcopy Create free account
hub / github.com/angular/angular / styleStringParser

Function styleStringParser

packages/core/src/render3/instructions/styling.ts:146–150  ·  view source on GitHub ↗
(keyValueArray: KeyValueArray<any>, text: string)

Source from the content-addressed store, hash-verified

144 * @param text text to parse.
145 */
146export function styleStringParser(keyValueArray: KeyValueArray<any>, text: string): void {
147 for (let i = parseStyle(text); i >= 0; i = parseStyleNext(text, i)) {
148 styleKeyValueArraySet(keyValueArray, getLastParsedKey(text), getLastParsedValue(text));
149 }
150}
151
152/**
153 * Update class bindings using an object literal or class-string on an element.

Callers

nothing calls this directly

Calls 5

parseStyleFunction · 0.90
parseStyleNextFunction · 0.90
getLastParsedKeyFunction · 0.90
getLastParsedValueFunction · 0.90
styleKeyValueArraySetFunction · 0.85

Tested by

no test coverage detected