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

Function styleStringParser

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

Source from the content-addressed store, hash-verified

147 * @param text text to parse.
148 */
149export function styleStringParser(keyValueArray: KeyValueArray<any>, text: string): void {
150 for (let i = parseStyle(text); i >= 0; i = parseStyleNext(text, i)) {
151 styleKeyValueArraySet(keyValueArray, getLastParsedKey(text), getLastParsedValue(text));
152 }
153}
154
155/**
156 * 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